]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix "Source and destination overlap in memcpy" Valgrind errors
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sun, 15 Jan 2017 17:35:43 +0000 (06:35 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 15 Jan 2017 17:35:43 +0000 (06:35 +1300)
commit051b132b350cb5b92689628fb56f5755be693bcb
treee20695cfe93256bbb049d686a0e164ba575e2606
parent5db083a7bb8f8dbc85c16fc521d4c9a9b96b9438
Fix "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 to
store quoted-processed output string.
src/format/Format.cc