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

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 5 14:21:05 PDT 2018


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

Currently many allocator specific errors (OOM, for example) are reported as
a text message and CHECK(0) termination, not stack, no details, not too
helpful nor informative. To improve the situation, detailed and
structured errors were defined and reported under the appropriate conditions.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D47798

Files:
  lib/hwasan/hwasan.cc
  lib/hwasan/hwasan.h
  lib/hwasan/hwasan_allocator.cc
  lib/hwasan/hwasan_interceptors.cc
  lib/hwasan/hwasan_linux.cc
  lib/hwasan/hwasan_new_delete.cc
  lib/hwasan/hwasan_report.cc
  lib/hwasan/hwasan_report.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47798.150042.patch
Type: text/x-patch
Size: 11051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180605/78cc4e91/attachment.bin>


More information about the llvm-commits mailing list