Displaying 2 results from an estimated 2 matches for "bad_alloc_error_handler".
2017 Sep 06
2
Temporary disable ASan's allocator check
Hi all,
Is it possible to change the value of ASan's allocator_may_return_null at runtime or somehow disable this check temporarily? If I install an LLVM bad_alloc_error_handler, ASan's allocator wrapper detects this first and terminates the process instead of returning 0, preventing the custom handler from being called.
Thanks,
Jonas
2017 Sep 06
2
Temporary disable ASan's allocator check
...t 8:43 AM, Jonas Devlieghere via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> Hi all,
>
> Is it possible to change the value of ASan's allocator_may_return_null at runtime or somehow disable this check temporarily? If I install an LLVM bad_alloc_error_handler, ASan's allocator wrapper detects this first and terminates the process instead of returning 0, preventing the custom handler from being called.
>
> Is this question related to "r312582 - Revert "[Decompression] Fail gracefully when out of memoryā€¯"?
It is! Though even if...