diff options
author | Pierre Gousseau <pierre.gousseau@sony.com> | 2022-05-30 17:00:10 +0100 |
---|---|---|
committer | Pierre Gousseau <pierre.gousseau@sony.com> | 2022-05-30 17:00:10 +0100 |
commit | 4278b7e16a5b13d529c92d682ac76b53f93a4961 (patch) | |
tree | 810433959e1fe0547da1823617b8394c4ea94be7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3f71765a71ca97433723b43c4f64931cace11ca1 (diff) | |
download | llvm-4278b7e16a5b13d529c92d682ac76b53f93a4961.zip llvm-4278b7e16a5b13d529c92d682ac76b53f93a4961.tar.gz llvm-4278b7e16a5b13d529c92d682ac76b53f93a4961.tar.bz2 |
[sanitizers] Fixes strndup API behaviour when intercepted by sanitizers
Sanitizers ignore flag allocator_may_return_null=1 in strndup() calls.
When OOM is emulated, this causes to the unexpected crash.
Committed by pgousseau on behalf of "Kostyantyn Melnik, kmnls.kmnls@gmail.com"
Reviewed by: pgousseau
Differential Revision: https://reviews.llvm.org/D126452
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions