summaryrefslogtreecommitdiff
path: root/sys/lib/libz/inflate.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-03-24 17:05:49 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-03-24 17:05:49 +0000
commita134d106f8c824c718bb2b600309d5a48f0a373c (patch)
tree2275655a10c497c2fc840da00645c6636e0c2c4f /sys/lib/libz/inflate.c
parent8ebc0a8f8c0a9a2278534e2c73d1a6f205ee48b2 (diff)
Do not check for writing to address zero on vax, since this is where
we want to be able to load a .gz kernel. ok deraadt@
Diffstat (limited to 'sys/lib/libz/inflate.c')
-rw-r--r--sys/lib/libz/inflate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/lib/libz/inflate.c b/sys/lib/libz/inflate.c
index 61ed2726416..9ad0ef0baad 100644
--- a/sys/lib/libz/inflate.c
+++ b/sys/lib/libz/inflate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inflate.c,v 1.9 2003/12/16 23:58:30 millert Exp $ */
+/* $OpenBSD: inflate.c,v 1.10 2004/03/24 17:05:48 miod Exp $ */
/* inflate.c -- zlib decompression
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
@@ -555,7 +555,10 @@ int flush;
static const unsigned short order[19] = /* permutation of code lengths */
{16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
- if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
+ if (strm == Z_NULL || strm->state == Z_NULL ||
+#ifndef __vax__
+ strm->next_out == Z_NULL ||
+#endif
(strm->next_in == Z_NULL && strm->avail_in != 0))
return Z_STREAM_ERROR;