[all-commits] [llvm/llvm-project] d568e5: [MSAN] Fix wordexp interception when WRDE_DOOFFS i...
Justin Cady via All-commits
all-commits at lists.llvm.org
Tue Aug 24 14:30:22 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d568e5325c744dadf08729aee0819a8954a955f5
https://github.com/llvm/llvm-project/commit/d568e5325c744dadf08729aee0819a8954a955f5
Author: Justin Cady <desk at justincady.com>
Date: 2021-08-24 (Tue, 24 Aug 2021)
Changed paths:
M compiler-rt/lib/msan/tests/msan_test.cpp
M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Log Message:
-----------
[MSAN] Fix wordexp interception when WRDE_DOOFFS is used
Handle the case of wordexp being invoked with WRDE_DOOFFS and
we.we_offs set to a positive value, which will result in NULL
entries prepended to the result. With this change the entire
result, containing both NULL and actual entries, is unpoisoned.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D108646
More information about the All-commits
mailing list