[PATCH] D31457: [asan] Add strndup/__strndup interceptors if targeting linux.

pierre gousseau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 03:57:24 PDT 2017


pgousseau created this revision.
Herald added subscribers: kubamracek, srhines.

This change adds the interceptors for strndup and __strndup on linux as strndup get generated as __strndup at -O3.


https://reviews.llvm.org/D31457

Files:
  lib/asan/asan_interceptors.cc
  lib/asan/asan_interceptors.h
  lib/asan/tests/asan_str_test.cc
  lib/sanitizer_common/tests/sanitizer_test_utils.h
  test/asan/TestCases/strndup_oob_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31457.93353.patch
Type: text/x-patch
Size: 5179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170329/7477bb09/attachment.bin>


More information about the llvm-commits mailing list