diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-02 04:22:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-02 04:22:47 +0000 |
commit | 17102908a995c3adb037dcedcfc46dad51db0ba7 (patch) | |
tree | 09f61ea5b0ea1da1bf1daf070d0a55dac726787d /gnu/usr.bin/gzip/inflate.c | |
parent | 1783c584807a51b6e2e7a30026199932f0c15c1b (diff) |
buf oflows; wosch & me
Diffstat (limited to 'gnu/usr.bin/gzip/inflate.c')
-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 d959ea96ed5..1e813d4d6de 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: inflate.c,v 1.1 1995/10/18 08:40:53 deraadt Exp $"; +static char rcsid[] = "$Id: inflate.c,v 1.2 1998/01/02 04:22:46 deraadt Exp $"; #endif #include <sys/types.h> @@ -767,6 +767,8 @@ int inflate_dynamic() return i; /* incomplete code set */ } + if (tl == NULL) + return 2; /* read in literal and distance code lengths */ n = nl + nd; |