This is an archive of the discontinued LLVM Phabricator instance.

Add missing sanitizer metadata plumbing from CFE.
ClosedPublic

Authored by hctim on Jul 11 2022, 8:28 AM.

Details

Summary

clang misses attaching sanitizer metadata for external globals.

Diff Detail

Event Timeline

hctim created this revision.Jul 11 2022, 8:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2022, 8:28 AM
hctim requested review of this revision.Jul 11 2022, 8:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2022, 8:28 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
eugenis accepted this revision.Jul 12 2022, 4:37 PM

LGTM

Is there an ASan test to update? I guess before this change, for an ignorelisted global, ASan would emit wrongly typed declaration on the undef side - which should not cause any practical issues, but still.

This revision is now accepted and ready to land.Jul 12 2022, 4:37 PM
hctim updated this revision to Diff 444115.Jul 12 2022, 5:15 PM

Update ASan and HWASan tests as well.

This revision was automatically updated to reflect the committed changes.