From 52960ea9038d1f5820453129db4652b012bda0fe Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 12 Jul 2005 23:38:29 +0000 Subject: Apply zlib security fix. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- zlib/inftrees.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3