aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2022-02-10 15:42:38 -0800
committerTeresa Johnson <tejohnson@google.com>2022-02-13 06:59:32 -0800
commit634da7a1c61ee8c173e90a841eb1f4ea03caa20b (patch)
tree0fac9e32f4f33f4923424c3092a21f17ce5b232d /llvm/lib/Object/MachOObjectFile.cpp
parent0e4ecfaf5a29ca146cbcc08ed38e7b7565d4580f (diff)
downloadllvm-634da7a1c61ee8c173e90a841eb1f4ea03caa20b.zip
llvm-634da7a1c61ee8c173e90a841eb1f4ea03caa20b.tar.gz
llvm-634da7a1c61ee8c173e90a841eb1f4ea03caa20b.tar.bz2
[sanitizer] Check if directory exists before trying to create
Add a DirExists mechanism, modeled after FileExists. Use it to guard creation of the report path directory. This should avoid failures running the sanitizer in a sandbox where the file creation attempt causes hard failures, even for an existing directory. Problem reported on D109794 for ChromeOS in sandbox (https://issuetracker.google.com/209296420). Differential Revision: https://reviews.llvm.org/D119495
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions