aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorDokyung Song <dokyungs@google.com>2020-07-16 21:24:06 +0000
committerDokyung Song <dokyungs@google.com>2020-07-27 18:27:49 +0000
commitb52b2e1c188072e3cbc91500cfd503fb26d50ffc (patch)
tree1f573b8f740f9f7090ce2f02263443038361a550 /lldb/source/Commands/CommandObjectCommands.cpp
parent7832d0f63d3210b4a4f0e8bfc968ebe44dba0da5 (diff)
downloadllvm-b52b2e1c188072e3cbc91500cfd503fb26d50ffc.zip
llvm-b52b2e1c188072e3cbc91500cfd503fb26d50ffc.tar.gz
llvm-b52b2e1c188072e3cbc91500cfd503fb26d50ffc.tar.bz2
Recommit "[libFuzzer] Disable implicit builtin knowledge about memcmp-like functions when -fsanitize=fuzzer-no-link is given."
Summary: This patch disables implicit builtin knowledge about memcmp-like functions when compiling the program for fuzzing, i.e., when -fsanitize=fuzzer(-no-link) is given. This allows libFuzzer to always intercept memcmp-like functions as it effectively disables optimizing calls to such functions into different forms. This is done by adding a set of flags (-fno-builtin-memcmp and others) in the clang driver. Individual -fno-builtin-* flags previously used in several libFuzzer tests are now removed, as it is now done automatically in the clang driver. The patch was once reverted in 8ef9e2bf355d05bc81d8b0fe1e5333eec59a0a91, as this patch was dependent on a reverted commit f78d9fceea736d431e9e3cbca291e3909e3aa46d. This reverted commit was recommitted in 831ae45e3dc609e43ba561af07670a8fe47461ef, so relanding this dependent patch too. Reviewers: morehouse, hctim Subscribers: cfe-commits, #sanitizers Tags: #clang, #sanitizers Differential Revision: https://reviews.llvm.org/D83987
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions