[all-commits] [llvm/llvm-project] 3e1cb0: [CodeGen][MSan] Don't use offsets of zero-sized fi...
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Mon Dec 7 13:44:43 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3e1cb0db8a79b19996fcea210b639fe513a5eaf3
https://github.com/llvm/llvm-project/commit/3e1cb0db8a79b19996fcea210b639fe513a5eaf3
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2020-12-07 (Mon, 07 Dec 2020)
Changed paths:
M clang/lib/CodeGen/CGClass.cpp
M clang/test/CodeGenCXX/sanitize-dtor-zero-size-field.cpp
Log Message:
-----------
[CodeGen][MSan] Don't use offsets of zero-sized fields
Such fields will likely have offset zero making
__sanitizer_dtor_callback poisoning wrong regions.
E.g. it can poison base class member from derived class constructor.
Differential Revision: https://reviews.llvm.org/D92727
More information about the All-commits
mailing list