1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 20:15:03 -05:00

- Andre Guibert de Bruet correctly pointed out an over-alloc with one wasted

byte in the digest code.
This commit is contained in:
Daniel Stenberg 2009-05-10 21:33:55 +00:00
parent d1ba4324de
commit effbd99384
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,10 @@
Changelog Changelog
Daniel Stenberg (10 May 2009)
- Andre Guibert de Bruet correctly pointed out an over-alloc with one wasted
byte in the digest code.
Yang Tse (9 May 2009) Yang Tse (9 May 2009)
- Removed DOS and TPF package's subdirectory Makefile.am, it was only used - Removed DOS and TPF package's subdirectory Makefile.am, it was only used
to include some files in the distribution tarball serving no other purpose. to include some files in the distribution tarball serving no other purpose.

View File

@ -543,8 +543,8 @@ CURLcode Curl_output_digest(struct connectdata *conn,
*allocuserpwd = tmp; *allocuserpwd = tmp;
} }
/* append CRLF to the userpwd header */ /* append CRLF + zero (3 bytes) to the userpwd header */
tmp = realloc(*allocuserpwd, strlen(*allocuserpwd) + 3 + 1); tmp = realloc(*allocuserpwd, strlen(*allocuserpwd) + 3);
if(!tmp) if(!tmp)
return CURLE_OUT_OF_MEMORY; return CURLE_OUT_OF_MEMORY;
strcat(tmp, "\r\n"); strcat(tmp, "\r\n");