Skip to content

Commit a86398e

Browse files
committed
Add api_list entries for the dfsan-based fuzzer
Summary: Add api_list entries for the dfsan-based fuzzer Test Plan: covered by check-fuzzer Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9538 llvm-svn: 236657
1 parent 754f55d commit a86398e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

compiler-rt/lib/dfsan/done_abilist.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,20 @@ fun:reflect.MakeFuncStubGo=uninstrumented
258258
fun:reflect.MakeFuncStubGo=discard
259259
fun:reflect.makeFuncStub=uninstrumented
260260
fun:reflect.makeFuncStub=discard
261+
262+
263+
###############################################################################
264+
# lib/Fuzzer
265+
###############################################################################
266+
# Replaces __sanitizer_cov_trace_cmp with __dfsw___sanitizer_cov_trace_cmp
267+
fun:__sanitizer_cov_trace_cmp=custom
268+
fun:__sanitizer_cov_trace_cmp=uninstrumented
269+
270+
# Ignores coverage callbacks.
271+
fun:__sanitizer_cov=uninstrumented
272+
fun:__sanitizer_cov=discard
273+
fun:__sanitizer_cov_module_init=uninstrumented
274+
fun:__sanitizer_cov_module_init=discard
275+
276+
# Don't add extra parameters to the Fuzzer callback.
277+
fun:LLVMFuzzerTestOneInput=uninstrumented

compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ on_exit() {
1717
rm -f ${DIFF_B} 2> /dev/null
1818
}
1919

20+
# Ignore __sanitizer_cov_trace* because they are implemented elsewhere.
2021
trap on_exit EXIT
21-
grep -E "^fun:.*=custom" ${DFSAN_ABI_LIST} | grep -v "dfsan_get_label" \
22+
grep -E "^fun:.*=custom" ${DFSAN_ABI_LIST} \
23+
| grep -v "dfsan_get_label\|__sanitizer_cov_trace" \
2224
| sed "s/^fun:\(.*\)=custom.*/\1/" | sort > $DIFF_A
2325
grep -E "__dfsw.*\(" ${DFSAN_CUSTOM_WRAPPERS} \
2426
| sed "s/.*__dfsw_\(.*\)(.*/\1/" | sort > $DIFF_B

0 commit comments

Comments
 (0)