I wrote:
Benjamin wrote:
On Mon, Aug 30, 2010 at 2:53 PM, corvid <corvid@lavabit.com> wrote:
What does the call stack look like?
Here's the backtrace: http://obeythepenguin.users.sourceforge.net/dillo/misc/dStr_insert_l-backtra...
Okay, so the lengths reported for dStr_append/insert_l() are -1163005939, which is not good. When we started in Decode_gzip(), we had 2934 bytes, which sounds normal enough.
Looking at z_stream, total_out is a uLong and the dstr code expects an int, but it would be hard to get a very large number there.
You might try undoing http://hg.dillo.org/dillo/rev/7447d4d53388 and I'll look through the zlib documentation to see whether inflate is supposed to do anything in particular with total_out when there's an error (if that's what's going on).