Apply zlib security fix.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-07-12 23:38:29 +00:00
parent 13cb2bc18c
commit 52960ea903
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,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 */