diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2024-09-19 20:16:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 10:16:28 -0700 |
commit | 8a34f6dba14e49332ff63abfa6a8aa3ca560fc50 (patch) | |
tree | 908385a36b26d54f791ca4ea3174cc3712028768 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 74c0ab6f3925f5a9461bde1a7ca4d4dbc369b07e (diff) | |
download | llvm-8a34f6dba14e49332ff63abfa6a8aa3ca560fc50.zip llvm-8a34f6dba14e49332ff63abfa6a8aa3ca560fc50.tar.gz llvm-8a34f6dba14e49332ff63abfa6a8aa3ca560fc50.tar.bz2 |
[ASAN] Do not consider alignment during object size calculations (#109120)
It was found that ASAN logic optimizes away out-of-bound access
instrumentation for over-aligned arrays. See #108287 for complete code
examples.
Fix it by not considering alignment during object size calculation,
since out-of-bounds access for over-aligned object is still UB and
should be reported by ASAN.
Closes: #108287
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions