]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not instrument first byte in strlen if already instrumented.
authorMax Ostapenko <m.ostapenko@partner.samsung.com>
Mon, 7 Jul 2014 14:31:18 +0000 (17:31 +0300)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Mon, 7 Jul 2014 14:31:18 +0000 (17:31 +0300)
commit0f05a19962a367aaac5b6ae8f7638a2bd77e4b29
treedb570b973c519ea2a1d227f61cc00851a179b8e7
parent625685bebb0c7dd8015ec5ec9cbfdfc857ab2267
Do not instrument first byte in strlen if already instrumented.

gcc/
* asan.c (instrument_strlen_call): Do not instrument first byte in strlen
if already instrumented.

gcc/testsuite/
* c-c++-common/asan/no-redundant-instrumentation-9.c: New test.

From-SVN: r212332
gcc/ChangeLog
gcc/asan.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/no-redundant-instrumentation-9.c [new file with mode: 0644]