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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D92727
[CodeGen][MSan] Don't use offsets of zero-sized fields ClosedPublic Authored by vitalybuka on Dec 5 2020, 9:42 PM.
Details Summary Such fields will likely have offset zero making
Diff Detail
Event Timelinevitalybuka added a child revision: D92728: [NFC][MSan] Round up OffsetPtr in PoisonMembers.Dec 6 2020, 12:09 AM This revision is now accepted and ready to land.Dec 7 2020, 7:50 AM This revision was landed with ongoing or failed builds.Dec 7 2020, 1:39 PM Closed by commit rG3e1cb0db8a79: [CodeGen][MSan] Don't use offsets of zero-sized fields (authored by vitalybuka). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 310009 clang/lib/CodeGen/CGClass.cpp
clang/test/CodeGenCXX/sanitize-dtor-zero-size-field.cpp
|