bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gunzip store trouble identified


From: Marcus Brinkmann
Subject: Re: gunzip store trouble identified
Date: Mon, 11 Mar 2002 23:43:25 +0100
User-agent: Mutt/1.3.27i

On Mon, Mar 11, 2002 at 11:36:56PM +0100, Marcus Brinkmann wrote:
> and, yo and behold, the calculation of maxaddr will underflow, leading to a
                                         ^^^^^^^
maxread

> maxaddr of around 2^32 minus something (something being 256kb - 566 or so).
  ^^^^^^^
maxread

> The next read will read past the end of the store and trigger the EIO.
> 
> Again, finding the right place to fix that is bit of a problem.  Only
> reading up to maxread defeats the purpose of in_buffering.

But I verified that this fixes the symptoms (replacing in_buffering in the
store_read call in zread by "(maxread < in_buffering) ? maxread : in_buffering")

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]