diff options
author | Kostya Serebryany <kcc@google.com> | 2015-07-30 02:32:51 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-07-30 02:32:51 +0000 |
commit | 9edd4e46e661b1c521992518e779ad9eb62e3c38 (patch) | |
tree | cc32e06ae67638c24add3bebd0b4133b2dc8e94e /include/sanitizer/common_interface_defs.h | |
parent | 2e0ebe3e638a1d8ad6c99c7a7078b0cd94502773 (diff) |
[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
Diffstat (limited to 'include/sanitizer/common_interface_defs.h')
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |