[PATCH] D44404: [ASan] Report proper ASan error on allocator failures instead of CHECK(0)-ing

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 11:23:18 PDT 2018


alekseyshl updated this revision to Diff 140111.
alekseyshl marked an inline comment as done.
alekseyshl added a comment.

- Pass caller stack to quarantine callback to report on OOM.
- SetAllocatorOutOfMemory should not be called in new interceptors,
- Disable LSan allocator test in LSan standalone mode.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44404

Files:
  lib/asan/asan_allocator.cc
  lib/asan/asan_errors.cc
  lib/asan/asan_errors.h
  lib/asan/asan_new_delete.cc
  lib/asan/asan_report.cc
  lib/asan/asan_report.h
  lib/sanitizer_common/sanitizer_allocator.cc
  lib/sanitizer_common/sanitizer_allocator.h
  test/asan/TestCases/Linux/aligned_alloc-alignment.cc
  test/asan/TestCases/Linux/allocator_oom_test.cc
  test/asan/TestCases/Linux/pvalloc-overflow.cc
  test/asan/TestCases/Posix/posix_memalign-alignment.cc
  test/asan/TestCases/Windows/oom.cc
  test/asan/TestCases/allocator_returns_null.cc
  test/asan/TestCases/calloc-overflow.cc
  test/asan/TestCases/malloc-size-too-big.cc
  test/lsan/TestCases/allocator_returns_null.cc
  test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44404.140111.patch
Type: text/x-patch
Size: 32930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180328/2b4ebdd2/attachment.bin>


More information about the llvm-commits mailing list