aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-01-30 13:58:40 -0800
committerGitHub <noreply@github.com>2024-01-30 13:58:40 -0800
commit648560062af8deb4e6478130deb1dd8fa62929a8 (patch)
treebf6cd3401c43f66c751fef00d5892d89203f8b79 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent9b91c54d9bd3227a49e146c055fb0165567f7f8d (diff)
downloadllvm-648560062af8deb4e6478130deb1dd8fa62929a8.zip
llvm-648560062af8deb4e6478130deb1dd8fa62929a8.tar.gz
llvm-648560062af8deb4e6478130deb1dd8fa62929a8.tar.bz2
[dfsan] Wrap glibc 2.38 __isoc23_* functions (#79958)
Fix #79283: `test/dfsan/custom.cpp` has undefined symbol linker errors on glibc 2.38 due to lack of wrappers for `__isoc23_strtol` and `__isoc23_scanf` family functions. Implement these wrappers as aliases to existing wrappers, similar to https://reviews.llvm.org/D158943 for other sanitizers. `strtol` in a user program, whether or not `_ISOC2X_SOURCE` is defined, uses the C23 semantics (`strtol("0b1", 0, 0)` => 1), when `libclang_rt.dfsan.a` is built on glibc 2.38+.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions