[DFSan] Add option for conditional callbacks.
authorAndrew Browne <browneee@google.com>
Thu, 23 Dec 2021 07:54:26 +0000 (23:54 -0800)
committerAndrew Browne <browneee@google.com>
Wed, 5 Jan 2022 23:07:09 +0000 (15:07 -0800)
commit4e173585f6cf1c55b4ed450bce1a9ae11ecbbb2b
treea27542da034999a108271ac99c1fcf71a9d65e0d
parent46a28a954e5e813f64ff458891b2d0891963c7d8
[DFSan] Add option for conditional callbacks.

This allows DFSan to find tainted values used to control program behavior.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D116207
compiler-rt/include/sanitizer/dfsan_interface.h
compiler-rt/lib/dfsan/dfsan.cpp
compiler-rt/lib/dfsan/done_abilist.txt
compiler-rt/test/dfsan/Inputs/flags_abilist.txt
compiler-rt/test/dfsan/conditional_callbacks.c [new file with mode: 0644]
compiler-rt/test/dfsan/conditional_callbacks_sig.c [new file with mode: 0644]
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp