diff options
| author | Tavian Barnes <tavianator@tavianator.com> | 2022-01-29 11:23:28 -0500 |
|---|---|---|
| committer | Tavian Barnes <tavianator@tavianator.com> | 2022-01-29 16:37:21 -0500 |
| commit | f8f4c4052715994338757244fcaacc093f3c6808 (patch) | |
| tree | baa0d157aecfdc0bb5937cc1eb7af73296bc7b2a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | ca43894e0e350af2245ba7d9ad8b6e31e0d4786d (diff) | |
| download | rust-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
