From 8c0df7e4688a658ee8a1692b59e1c48e4b7924c6 Mon Sep 17 00:00:00 2001 From: wosch Date: Fri, 26 Dec 1997 21:12:26 +0000 Subject: Workaround to avoid a strange core dump. gzip < /dev/null | perl -npe 's/\003\003/\003\225/' | gzip -d --- gnu/usr.bin/gzip/inflate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu') 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 @@ -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; -- cgit v1.1