1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Song Ma noted a zlib memory leak in the illegal compressed header

countermeasures code path.
This commit is contained in:
Dan Fandrich 2007-08-08 17:51:40 +00:00
parent af2d899d6b
commit 668c204970
3 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,10 @@
Changelog
Dan F (8 August 2007)
- Song Ma noted a zlib memory leak in the illegal compressed header
countermeasures code path.
Daniel S (4 August 2007)
- Patrick Monnerat fixed curl_easy_escape() and curlx_strtoll() to work on
non-ASCII systems.

View File

@ -35,6 +35,7 @@ This release includes the following bugfixes:
o small POST with NTLM
o resumed file:// transfers
o CURLOPT_DNS_CACHE_TIMEOUT and CURLOPT_DNS_USE_GLOBAL_CACHE are 64 bit "clean"
o memory leak when handling compressed data streams from broken servers
This release includes the following known bugs:

View File

@ -133,7 +133,7 @@ inflate_stream(struct connectdata *conn,
/* some servers seem to not generate zlib headers, so this is an attempt
to fix and continue anyway */
inflateReset(z);
(void) inflateEnd(z); /* don't care about the return code */
if (inflateInit2(z, -MAX_WBITS) != Z_OK) {
return process_zlib_error(conn, z);
}