summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/test-output.py
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-06-16 03:32:59 +0000
committerFangrui Song <maskray@google.com>2018-06-16 03:32:59 +0000
commitd40fc6019b26f2b64a80fc5fcb2de73e50ba838e (patch)
treefa87a3aa8db310f6f21b0cd14fe6ba3b55878d1d /llvm/utils/lit/tests/test-output.py
parentd4ff2f8a743681583ec6426b4ad488151fa1b9dc (diff)
downloadbcm5719-llvm-d40fc6019b26f2b64a80fc5fcb2de73e50ba838e.tar.gz
bcm5719-llvm-d40fc6019b26f2b64a80fc5fcb2de73e50ba838e.zip
[sanitizer_common] Use O_TRUNC for WrOnly access mode.
Summary: Otherwise if the file existed and was larger than the write size before the OpenFile call, the file will not be truncated and contain garbage in trailing bytes. Reviewers: glider, kcc, vitalybuka Subscribers: kubamracek, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D48250 llvm-svn: 334881
Diffstat (limited to 'llvm/utils/lit/tests/test-output.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud