[all-commits] [llvm/llvm-project] 4278b7: [sanitizers] Fixes strndup API behaviour when inte...
goussepi via All-commits
all-commits at lists.llvm.org
Mon May 30 09:03:19 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4278b7e16a5b13d529c92d682ac76b53f93a4961
https://github.com/llvm/llvm-project/commit/4278b7e16a5b13d529c92d682ac76b53f93a4961
Author: Pierre Gousseau <pierre.gousseau at sony.com>
Date: 2022-05-30 (Mon, 30 May 2022)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
M compiler-rt/test/sanitizer_common/TestCases/max_allocation_size.cpp
Log Message:
-----------
[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 at gmail.com"
Reviewed by: pgousseau
Differential Revision: https://reviews.llvm.org/D126452
More information about the All-commits
mailing list