You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
netrc truncates logins and passwords to ~240 chars. #2676
Activity
bagder commentedon Jun 22, 2018
Right, the limit seems to be that the current code is only allowing 256 bytes for the whole line:
curl/lib/netrc.c
Lines 118 to 119 in bc5a0b3
A cheap fix would be to instead allow it to use 4096 or something thereabouts: much larger, but not large to cause any problems. What do you think?
Dirbaio commentedon Jun 22, 2018
That would solve my particular issue, yes. Let's just hope no one needs more than 4096 chars :)
netrc: use a larger buffer
bagder commentedon Jun 23, 2018
It's been 256 bytes since 2003 and you're the first to report a problem with it. I presume 4096 should be good for a few years more =)