This is an archive of the discontinued LLVM Phabricator instance.

[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
__sanitizer_dtor_callback poisoning wrong regions.
E.g. it can poison base class member from derived class constructor.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Dec 5 2020, 9:42 PM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2020, 9:42 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Dec 7 2020, 7:50 AM
eugenis accepted this revision.Dec 7 2020, 10:14 AM

LGTM

This revision was landed with ongoing or failed builds.Dec 7 2020, 1:39 PM
This revision was automatically updated to reflect the committed changes.