From: Paul Mackerras <paulus@samba.org>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: Linus Torvalds <torvalds@transmeta.com>,
Steven Cole <elenstev@mesatop.com>,
linux-kernel@vger.kernel.org
Subject: Re: [Patch] 2.5.70-bk11 zlib merge #4 pure magic
Date: Sat, 7 Jun 2003 19:40:25 +1000 [thread overview]
Message-ID: <16097.45833.384548.319399@argo.ozlabs.ibm.com> (raw)
In-Reply-To: <20030606201306.GJ10487@wohnheim.fh-wedel.de>
Jörn Engel writes:
> The only code that could be bitten by this change is ppp, so I changed
> that as well. Paulus, could you have a quick look at it?
As Bart pointed out, there is a bug in zlib for window_size == 256.
Here is James Carlson's description of the problem:
The problem is that s->strstart gets set to a very large
positive integer when wsize (local copy of s->w_size) is
subtracted in deflate.c:fill_window(). This happens because
MAX_DIST(s) resolves as a negative number when the window size
is 8 -- MAX_DIST(s) is defined as s->w_size-MIN_LOOKAHEAD in
deflate.h. MIN_LOOKAHEAD is MAX_MATCH+MIN_MATCH+1, and that
is 258+3+1 or 262. Since a window size of 8 gives s->w_size
256, MAX_DIST(s) is 256-262 or -6.
This results in read_buf() writing over memory outside of
s->window, and a crash.
Your change won't affect PPP, since pppd already refuses to use
windowBits == 8 (as a workaround for this bug).
Regards,
Paul.
next prev parent reply other threads:[~2003-06-07 9:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-06 18:31 [Patch] 2.5.70-bk11 zlib cleanup #1 local Jörn Engel
2003-06-06 18:32 ` [Patch] 2.5.70-bk11 zlib cleanup #2 cpp Jörn Engel
2003-06-06 18:39 ` [Patch] 2.5.70-bk11 zlib cleanup #3 Z_NULL Jörn Engel
2003-06-06 18:52 ` [Patch] 2.5.70-bk11 zlib cleanup #4 casts Jörn Engel
2003-06-06 19:23 ` [Patch] 2.5.70-bk11 zlib merge #1 turboc Jörn Engel
2003-06-06 19:28 ` [Patch] 2.5.70-bk11 zlib merge #2 return code Jörn Engel
2003-06-06 20:00 ` [Patch] 2.5.70-bk11 zlib merge #3 inffast.c Jörn Engel
2003-06-06 20:13 ` [Patch] 2.5.70-bk11 zlib merge #4 pure magic Jörn Engel
2003-06-06 20:36 ` Bartlomiej Zolnierkiewicz
2003-06-06 21:38 ` Is there a bug with su, and /dev/std*? J.C. Wren
2003-06-07 9:20 ` [Patch] 2.5.70-bk11 zlib merge #4 pure magic Jörn Engel
2003-06-07 9:40 ` Paul Mackerras [this message]
2003-06-07 10:02 ` Jörn Engel
2003-06-07 11:42 ` Paul Mackerras
2003-06-06 18:54 ` [Patch] 2.5.70-bk11 zlib cleanup #3 Z_NULL Linus Torvalds
2003-06-06 19:13 ` 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=16097.45833.384548.319399@argo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=elenstev@mesatop.com \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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
all inboxes | Powered by JetHome®