[squid-dev] [PATCH] chop() should always clear empty buffers

Alex Rousskov rousskov at measurement-factory.com
Fri Jul 24 22:35:00 UTC 2015


Hello,

    Triage of another trunk bug (see the next email) led me to a problem
in SBuf::chop() that the attached patch attempts to address.

The old chop() code was trying to make the clearance decision ASAP,
without normalizing parameters first and missed most clearance cases as
the result.


HTH,

Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chop-should-clear-t1.patch
Type: text/x-diff
Size: 1745 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150724/27a22f07/attachment.patch>


More information about the squid-dev mailing list