[all-commits] [llvm/llvm-project] 9a4271: [sanitizer] Always initialize the regex in the reg...
Tavian Barnes via All-commits
all-commits at lists.llvm.org
Tue Mar 15 14:31:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a42715ae887e496df9122b29e86a6d8ebe5d53f
https://github.com/llvm/llvm-project/commit/9a42715ae887e496df9122b29e86a6d8ebe5d53f
Author: Tavian Barnes <tavianator at tavianator.com>
Date: 2022-03-15 (Tue, 15 Mar 2022)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
M compiler-rt/test/sanitizer_common/TestCases/Posix/regex.cpp
Log Message:
-----------
[sanitizer] Always initialize the regex in the regcomp() interceptor
When regcomp() fails, the same regex_t* should be passed to regerror()
for potentially better error messages. But doing that with msan would
report a use-of-uninitialized-value.
Fixes https://github.com/google/sanitizers/issues/1496
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D120591
More information about the All-commits
mailing list