emacs-devel
[Top][All Lists]
Advanced

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

Re: trunk r113804: * decompress.c: Fix bugs with large buffers and weird


From: Paul Eggert
Subject: Re: trunk r113804: * decompress.c: Fix bugs with large buffers and weird inputs.
Date: Tue, 13 Aug 2013 14:47:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

Lars Magne Ingebrigtsen wrote:
> What's with all the ptrdiff_t's when
> inflate only takes ints, anyway?

'inflate' takes unsigned ints, not ints.

Anyway, I tried rewriting the code along the line
you suggested.  'buffer_size' is not a good name,
though, as multiple buffers are in play here,
so I continued to call that constant 'avail_out'
by analogy with the zlib avail_out.



reply via email to

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