Skip to content

Commit

Permalink
Patched zlib security hole discussed here:
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 13, 2005
1 parent ec86fac commit c794701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Expand Up @@ -2,7 +2,8 @@
* CHANGELOG.
*/

07132005 - Updated zlib to 1.2.2.
07132005 - Updated zlib to 1.2.2, and patched it for this security hole:
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096
06122005 - Added support for mingw to Unix build process (thanks, Matze!).
03162005 - Added missing translation and Portuguese support (thanks, Danny!).
MPW support and several MacOS Classic fixes (thanks, Chris!).
Expand Down
2 changes: 1 addition & 1 deletion zlib122/inftrees.c
Expand Up @@ -134,7 +134,7 @@ unsigned short FAR *work;
left -= count[len];
if (left < 0) return -1; /* over-subscribed */
}
if (left > 0 && (type == CODES || (codes - count[0] != 1)))
if (left > 0 && (type == CODES || max != 1))
return -1; /* incomplete set */

/* generate offsets into symbol table for each length for sorting */
Expand Down

0 comments on commit c794701

Please sign in to comment.