[PATCH] D18329: [sanitizer] Add strchr* to the common interceptors

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 21 13:45:14 PDT 2016


bruening created this revision.
bruening added a reviewer: eugenis.
bruening added subscribers: kcc, llvm-commits, zhaoqin.

Adds strchr, strchrnul, and strrchr to the common interceptors, under a new
common flag intercept_strchr.

Removes the now-duplicate strchr interceptor from asan and all 3
interceptors from tsan.  Previously, asan did not intercept strchrnul, but
does now; previously, msan did not intercept strchr, strchrnul, or strrchr,
but does now.

http://reviews.llvm.org/D18329

Files:
  lib/asan/asan_flags.cc
  lib/asan/asan_interceptors.cc
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_flags.inc
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  lib/tsan/rtl/tsan_interceptors.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18329.51222.patch
Type: text/x-patch
Size: 6668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160321/9f285857/attachment.bin>


More information about the llvm-commits mailing list