From 9c8ac6c7428bb96bbc7cf4b7f02f009897e10af9 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 26 Dec 1997 21:12:26 +0000 Subject: [PATCH] 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(-) diff --git a/gnu/usr.bin/gzip/inflate.c b/gnu/usr.bin/gzip/inflate.c index 8f498e6df7f3..e7416626b91c 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;