[PATCH] D47924: [Sanitizers] Check alignment != 0 for aligned_alloc and posix_memalign

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 7 19:17:48 PDT 2018


alekseyshl created this revision.
alekseyshl added a reviewer: vitalybuka.
Herald added subscribers: Sanitizers, delcypher, kubamracek, srhines.

Move the corresponding tests to the common folder (as all of the
sanitizer allocators will support this feature soon) and add the checks
specific to aligned_alloc to ASan and LSan allocators.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D47924

Files:
  lib/asan/asan_allocator.cc
  lib/asan/asan_allocator.h
  lib/asan/asan_errors.cc
  lib/asan/asan_errors.h
  lib/asan/asan_malloc_linux.cc
  lib/asan/asan_report.cc
  lib/asan/asan_report.h
  lib/lsan/lsan_allocator.cc
  lib/lsan/lsan_allocator.h
  lib/lsan/lsan_interceptors.cc
  lib/sanitizer_common/sanitizer_allocator_checks.h
  test/asan/TestCases/Linux/aligned_alloc-alignment.cc
  test/asan/TestCases/Posix/posix_memalign-alignment.cc
  test/lsan/TestCases/Linux/aligned_alloc-alignment.cc
  test/lsan/TestCases/Posix/posix_memalign-alignment.cc
  test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc
  test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47924.150443.patch
Type: text/x-patch
Size: 15794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180608/079d5be5/attachment.bin>


More information about the llvm-commits mailing list