Linus Torvalds <torvalds@linux-foundation.org> writes:I thought the fact we do check the status with Z_STREAM_END means that we do already expect and rely on zlib to know where the end of input stream is, and stop there (otherwise we say something fishy is going on and we error out), and it was part of the design, not just "so happens" and "has enough synch ... _anyway_". If input zlib stream were corrupted and it detected the end of stream too early, then check of "stream.total_out != size" would fail even though we would see "st == Z_STREAM_END". If input stream were corrupted and it went past the end marker, we will read past the end and into some garbage that is the in-pack header of the next object representation, but zlib shouldn't go berserk even in that case, and would stop after filling the slop you allocated in the buffer --- we would detect the situation from stream.total_out != size and most likely st != Z_STREAM_END in such a case. While I think 5% is large enough, I'll leave this on the backburner for now. I think it is more grave issue that we inflate the same object many times as you noticed during the discussion. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Og dreams of kernels |
| Jens Axboe | [PATCH 31/33] Fusion: sg chaining support |
| Arnd Bergmann | Re: finding your own dead "CONFIG_" variables |
| Mark Brown | [PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset |
| Tony Breeds | [LGUEST] Look in object dir for .config |
git: | |
| Brian Downing | Re: Git in a Nutshell guide |
| John Benes | Re: master has some toys |
| Matthias Lederhofer | [PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree |
| Alexander Sulfrian | [RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set |
| Junio C Hamano | Re: Rss produced by git is not valid xml? |
| Linux Kernel Mailing List | iSeries: fix section mismatch in iseries_veth |
| Linux Kernel Mailing List | ixbge: remove TX lock and redo TX accounting. |
| Linux Kernel Mailing List | ixgbe: fix several counter register errata |
| Linux Kernel Mailing List | b43: fix build with CONFIG_SSB_PCI |
