about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-01-29 11:23:28 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-01-29 16:37:21 -0500
commitf8f4c4052715994338757244fcaacc093f3c6808 (patch)
treebaa0d157aecfdc0bb5937cc1eb7af73296bc7b2a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentca43894e0e350af2245ba7d9ad8b6e31e0d4786d (diff)
downloadrust-f8f4c4052715994338757244fcaacc093f3c6808.tar.gz
rust-f8f4c4052715994338757244fcaacc093f3c6808.zip
fs: Don't copy d_name from struct dirent
The dirent returned from readdir() is only guaranteed to be valid for
d_reclen bytes on common platforms.  Since we copy the name separately
anyway, we can copy everything except d_name into DirEntry::entry.

Fixes #93384.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions