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

pierre gousseau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 08:04:59 PDT 2017


pgousseau updated this revision to Diff 96921.
pgousseau added a comment.

Hi Eugenis/Filipe,

I have implemented the requested changes:

- Enabling strndup interceptor on all posix platforms including android
- Unsupport test on win32
- Implemented common logic of strndup in common interceptor and added COMMON_INTERCEPTOR_COPY_STRING

Let me know what you think!

Thanks,

Pierre


https://reviews.llvm.org/D31457

Files:
  lib/asan/asan_flags.cc
  lib/asan/tests/asan_str_test.cc
  lib/msan/msan_interceptors.cc
  lib/msan/tests/msan_test.cc
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_flags.inc
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  lib/sanitizer_common/tests/sanitizer_test_utils.h
  test/asan/TestCases/Posix/strndup_oob_test.cc
  test/msan/strndup.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31457.96921.patch
Type: text/x-patch
Size: 11802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170427/27ab8bf6/attachment-0001.bin>


More information about the llvm-commits mailing list