From 13c03581acd95fed099359b6be08924bd0ca01b0 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 7 May 2015 00:04:39 +0000 Subject: [PATCH] Add dfsan_weak_hook_memcmp Summary: Add a weak hook to be called from dfsan's custom memcmp. The primary user will be lib/Fuzzer. If this works well we'll add more hooks (strcmp, etc). Test Plan: Will be covered by lib/Fuzzer tests. Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9541 llvm-svn: 236679 --- compiler-rt/include/sanitizer/dfsan_interface.h | 10 ++++++++++ compiler-rt/lib/dfsan/dfsan_custom.cc | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/compiler-rt/include/sanitizer/dfsan_interface.h b/compiler-rt/include/sanitizer/dfsan_interface.h index 79dbf2f364c2..84ffd49f8afe 100644 --- a/compiler-rt/include/sanitizer/dfsan_interface.h +++ b/compiler-rt/include/sanitizer/dfsan_interface.h @@ -91,6 +91,16 @@ void dfsan_set_write_callback(dfsan_write_callback_t labeled_write_callback); ///