This is an archive of the discontinued LLVM Phabricator instance.

[msan] Clear byval shadow in ignored functions
ClosedPublic

Authored by vitalybuka on Jan 13 2022, 10:06 PM.

Details

Summary

If function has no sanitize_memory we still reset shadow for nested calls.
The first return from getShadow() correctly returned shadow for argument,
but it didn't reset shadow of byval pointee.

Depends on D117277

Diff Detail

Event Timeline

vitalybuka created this revision.Jan 13 2022, 10:06 PM
vitalybuka requested review of this revision.Jan 13 2022, 10:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2022, 10:06 PM
eugenis accepted this revision.Jan 14 2022, 12:23 PM

Maybe call it "clear byval shadow" instead of "fix".

LGTM

This revision is now accepted and ready to land.Jan 14 2022, 12:23 PM
vitalybuka retitled this revision from [msan] Fix byval shadow in ignored functions to [msan] Clear byval shadow in ignored functions.Jan 14 2022, 3:28 PM
vitalybuka edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.