summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-12-26 21:12:26 +0000
committerwosch <wosch@FreeBSD.org>1997-12-26 21:12:26 +0000
commit8c0df7e4688a658ee8a1692b59e1c48e4b7924c6 (patch)
treed1597ee1bc4729ea967e55092e1cf1d2d8e7012c /gnu
parentcadc59e5110e8e649cc8d99ce11c79fe858c4b45 (diff)
downloadFreeBSD-src-8c0df7e4688a658ee8a1692b59e1c48e4b7924c6.zip
FreeBSD-src-8c0df7e4688a658ee8a1692b59e1c48e4b7924c6.tar.gz
Workaround to avoid a strange core dump.
gzip < /dev/null | perl -npe 's/\003\003/\003\225/' | gzip -d
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gzip/inflate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/gzip/inflate.c b/gnu/usr.bin/gzip/inflate.c
index 8f498e6..e741662 100644
--- a/gnu/usr.bin/gzip/inflate.c
+++ b/gnu/usr.bin/gzip/inflate.c
@@ -97,7 +97,7 @@
*/
#ifdef RCSID
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: inflate.c,v 1.6 1997/02/22 15:45:58 peter Exp $";
#endif
#include <sys/types.h>
@@ -767,6 +767,8 @@ int inflate_dynamic()
return i; /* incomplete code set */
}
+ if (tl == NULL) /* Grrrhhh */
+ return 2;
/* read in literal and distance code lengths */
n = nl + nd;
OpenPOWER on IntegriCloud