[squid-dev] [PATCH] Memory overlap Valgrind-reported errors

Eduard Bagdasaryan eduard.bagdasaryan at measurement-factory.com
Sun Jan 15 16:15:04 UTC 2017


Fixed "Source and destination overlap in memcpy" Valgrind errors.

Before this patch, source and destination arguments in
log_quoted_string() could point to the same static memory area, causing
multiple Valgrind-reported errors. Fixed by creating another buffer for
storing the quoted-processed output string. The buffer size should be
enough to hold all processed escape sequences.


Regards,
Eduard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SQUID-265-memory-overlap-error-t1.patch
Type: text/x-patch
Size: 3770 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20170115/3678d56e/attachment.bin>


More information about the squid-dev mailing list