[PATCH] D18397: [sanitizer] Add strnlen to the common interceptors

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 08:14:05 PDT 2016


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

Adds strnlen to the common interceptors, under the existing flag
intercept_strlen.

Removes the now-duplicate strnlen interceptor from asan and msan.
This adds strnlen to tsan, which previously did not intercept it.

Adds a new test of strnlen to the sanitizer_common test cases.

http://reviews.llvm.org/D18397

Files:
  lib/asan/asan_interceptors.cc
  lib/asan/asan_interceptors.h
  lib/msan/msan_interceptors.cc
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_flags.inc
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  test/sanitizer_common/TestCases/strnlen.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18397.51420.patch
Type: text/x-patch
Size: 5568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160323/75f7dbfa/attachment.bin>


More information about the llvm-commits mailing list