On Wed, 7 Jan 2009, Shawn O. Pearce wrote: > > Ok, well, in this case I've been able to reproduce a zlib inflate > failure on the base object in a 2 deep delta chain. We got back: > > #define Z_STREAM_ERROR (-2) > > this causes the buffer to be freed and NULL to come back out of > unpack_compressed_entry(), and then everything is corrupt... I bet you actually got an earlier error already from the inflateInit. The Z_STREAM_ERROR probably comes from inflate() itself - and could very easily be due to a allocation error in inflateInit leaving the stream data incomplete. Let me try wrapping that dang thing and send a patch. Linus -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html