From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Marcelo Tosatti <marcelo@hera.kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4.21 zlib merge #4 windowBits
Date: Sat, 14 Jun 2003 15:50:26 +0200 [thread overview]
Message-ID: <20030614135026.GG15099@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <20030614134912.GF15099@wohnheim.fh-wedel.de>
Disallow windowBits <9 (windowBits=9 would hit a bug) for deflate and
do the same for ppp.
Jörn
--
Anything that can go wrong, will.
-- Finagle's Law
--- linux-2.4.20/lib/zlib_deflate/deflate.c~zlib_merge_magic 2003-06-10 12:37:17.000000000 +0200
+++ linux-2.4.20/lib/zlib_deflate/deflate.c 2003-06-10 17:01:02.000000000 +0200
@@ -215,7 +215,7 @@
windowBits = -windowBits;
}
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED ||
- windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
+ windowBits < 9 || windowBits > 15 || level < 0 || level > 9 ||
strategy < 0 || strategy > Z_HUFFMAN_ONLY) {
return Z_STREAM_ERROR;
}
--- linux-2.4.20/include/linux/ppp-comp.h~zlib_merge_magic 1999-08-06 19:44:11.000000000 +0200
+++ linux-2.4.20/include/linux/ppp-comp.h 2003-06-10 17:01:02.000000000 +0200
@@ -177,7 +177,7 @@
#define CI_DEFLATE_DRAFT 24 /* value used in original draft RFC */
#define CILEN_DEFLATE 4 /* length of its config option */
-#define DEFLATE_MIN_SIZE 8
+#define DEFLATE_MIN_SIZE 9
#define DEFLATE_MAX_SIZE 15
#define DEFLATE_METHOD_VAL 8
#define DEFLATE_SIZE(x) (((x) >> 4) + DEFLATE_MIN_SIZE)
next prev parent reply other threads:[~2003-06-14 13:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-14 13:47 [PATCH] 2.4.21 zlib merge #1 turboc Jörn Engel
2003-06-14 13:48 ` [PATCH] 2.4.21 zlib merge #2 return Jörn Engel
2003-06-14 13:49 ` [PATCH] 2.4.21 zlib merge #3 inffast Jörn Engel
2003-06-14 13:50 ` Jörn Engel [this message]
2003-06-14 13:51 ` [PATCH] 2.4.21 zlib changes #1 memlevel Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030614135026.GG15099@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@hera.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).