From 9edd4e46e661b1c521992518e779ad9eb62e3c38 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 30 Jul 2015 02:32:51 +0000 Subject: [sanitizer] add a weak hook for strncmp interceptor, both to dfsan and other sanitizers. Hide the declaration and the calls in better macros git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243610 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/sanitizer/common_interface_defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sanitizer/common_interface_defs.h') diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index 47df81b68..4cba61a49 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -120,6 +120,8 @@ extern "C" { // FIXME: implement more hooks. void __sanitizer_weak_hook_memcmp(void *called_pc, const void *s1, const void *s2, size_t n); + void __sanitizer_weak_hook_strncmp(void *called_pc, const char *s1, + const char *s2, size_t n); #ifdef __cplusplus } // extern "C" #endif -- cgit v1.2.3