aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFImportFile.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-01-18 15:04:48 -0800
committerFangrui Song <i@maskray.me>2024-01-18 15:04:48 -0800
commit8434e5d0a16b11ccdc29fc66a3843a94b0ad19f1 (patch)
treee61e5f6b74b4edd0981b1d6ab9c4d913034cf251 /llvm/lib/Object/COFFImportFile.cpp
parent184c22dd3aa3513244401fcced9a447c2577e2d3 (diff)
downloadllvm-8434e5d0a16b11ccdc29fc66a3843a94b0ad19f1.zip
llvm-8434e5d0a16b11ccdc29fc66a3843a94b0ad19f1.tar.gz
llvm-8434e5d0a16b11ccdc29fc66a3843a94b0ad19f1.tar.bz2
[dfsan] Don't clear shadow on dlopen(NULL, flags)
This ports msan https://reviews.llvm.org/D14795 to dfsan. dfsan, like msan, clears shadow for globals in a newly opened DSO in case the DSO occupies the address of a previously labeled/poisoned area. The operation should not happen on the main executable. In addition, for a DT_EXEC executable, l_addr is zero and will lead to a null pointer dereference in ForEachMappedRegion.
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions