diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-07-12 23:38:29 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-07-12 23:38:29 +0000 |
| commit | 52960ea9038d1f5820453129db4652b012bda0fe (patch) | |
| tree | 50d2840e75539ff8a29c39ca60ad4ee8cb42e93b /zlib | |
| parent | 13cb2bc18c6332ef63d7b96c4181ff30af415c5a (diff) | |
Apply zlib security fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'zlib')
| -rw-r--r-- | zlib/inftrees.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zlib/inftrees.c b/zlib/inftrees.c index 3bb56398e..0b791afd9 100644 --- a/zlib/inftrees.c +++ b/zlib/inftrees.c @@ -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 */ |
