asan: fix crash in strdup on malloc failure
authorDmitry Vyukov <dvyukov@google.com>
Mon, 20 Feb 2023 10:58:15 +0000 (11:58 +0100)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 20 Feb 2023 14:34:33 +0000 (15:34 +0100)
commit99c7664bd4be4a2e719415a18ca80fcf9a619a5e
tree51ec1db63f9c78c8c4ffe0031b40df61982315ab
parentc1bd1eed8e995ccdbf8c1dec0b0d26e48dee27b1
asan: fix crash in strdup on malloc failure

There are some programs that try to handle all malloc failures.
Let's allow testing of such programs.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D144374
compiler-rt/lib/asan/asan_interceptors.cpp