diff options
author | wosch <wosch@FreeBSD.org> | 1997-12-26 21:12:26 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-12-26 21:12:26 +0000 |
commit | 8c0df7e4688a658ee8a1692b59e1c48e4b7924c6 (patch) | |
tree | d1597ee1bc4729ea967e55092e1cf1d2d8e7012c /gnu/usr.bin/gzip | |
parent | cadc59e5110e8e649cc8d99ce11c79fe858c4b45 (diff) | |
download | FreeBSD-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/usr.bin/gzip')
-rw-r--r-- | gnu/usr.bin/gzip/inflate.c | 4 |
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; |