summaryrefslogtreecommitdiff
path: root/zlib/inftrees.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-11 22:11:18 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-11 22:11:18 +0000
commit8c16c8c7be08247db45d9fdc459058f148d1dcb9 (patch)
treef1412386f2b8672f1b5cfdf967e1abcd29d60ca9 /zlib/inftrees.c
parent1fcf59fa4632a4b13bfb40efe6291df786d98926 (diff)
downloadgcc-8c16c8c7be08247db45d9fdc459058f148d1dcb9.tar.gz
* ChangeLog.gcj: Imported 1.1.4, while preserving local changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50612 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'zlib/inftrees.c')
-rw-r--r--zlib/inftrees.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/zlib/inftrees.c b/zlib/inftrees.c
index ef1e0b6b873..4c32ca30d99 100644
--- a/zlib/inftrees.c
+++ b/zlib/inftrees.c
@@ -1,5 +1,5 @@
/* inftrees.c -- generate Huffman trees for efficient decoding
- * Copyright (C) 1995-1998 Mark Adler
+ * Copyright (C) 1995-2002 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -11,7 +11,7 @@
#endif
const char inflate_copyright[] =
- " inflate 1.1.3 Copyright 1995-1998 Mark Adler ";
+ " inflate 1.1.4 Copyright 1995-2002 Mark Adler ";
/*
If you use the zlib library in a product, an acknowledgment is welcome
in the documentation of your product. If for some reason you cannot
@@ -104,8 +104,7 @@ uIntf *v; /* working area: values in order of bit length */
/* Given a list of code lengths and a maximum table size, make a set of
tables to decode that set of codes. Return Z_OK on success, Z_BUF_ERROR
if the given code set is incomplete (the tables are still built in this
- case), Z_DATA_ERROR if the input is invalid (an over-subscribed set of
- lengths), or Z_MEM_ERROR if not enough memory. */
+ case), or Z_DATA_ERROR if the input is invalid. */
{
uInt a; /* counter for codes of length k */
@@ -231,7 +230,7 @@ uIntf *v; /* working area: values in order of bit length */
/* allocate new table */
if (*hn + z > MANY) /* (note: doesn't matter for fixed) */
- return Z_MEM_ERROR; /* not enough memory */
+ return Z_DATA_ERROR; /* overflow of MANY */
u[h] = q = hp + *hn;
*hn += z;