diff options
author | Fangrui Song <maskray@google.com> | 2018-06-16 03:32:59 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-06-16 03:32:59 +0000 |
commit | 48cf0257c265b562b39ed5c69db532c6ce2401e5 (patch) | |
tree | febb171a7a707ee6a07cea22fe02f72c4ec7464c /test/asan | |
parent | 7214d67ca7a00bf35dfb599c94fdeea3894cba4c (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan')
0 files changed, 0 insertions, 0 deletions