diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2013-08-19 00:48:24 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-08-20 11:16:38 +0200 |
commit | 36585b539543ca4471ab19c0d738a6e52a827aee (patch) | |
tree | 484200dc1e4360b2d5c4bb0b40743963660b4ae2 /lib/curl_threads.c | |
parent | 11baffbff67eae225f63fc684d80ce52a79c8ac5 (diff) |
netrc: handle longer username and password
libcurl truncates usernames and passwords it reads from .netrc to
LOGINSIZE and PASSWORDSIZE (64) characters without any indication to
the user, to ensure the values returned from Curl_parsenetrc fit in a
caller-provided buffer.
Fix the interface by passing back dynamically allocated buffers
allocated to fit the user's input. The parser still relies on a
256-character buffer to read each line, though.
So now you can include an ~246-character password in your .netrc,
instead of the previous limit of 63 characters.
Reported-by: Colby Ranger
Diffstat (limited to 'lib/curl_threads.c')
0 files changed, 0 insertions, 0 deletions