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
Paths
| Differential D117278
[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. Depends on D117277
Diff Detail
Event Timelinevitalybuka added a child revision: D117285: [msan] Copy origin of byval arguments.Jan 13 2022, 11:56 PM 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 Closed by commit rG0a46b6ec4e47: [msan] Clear byval shadow in ignored functions (authored by vitalybuka). · Explain WhyJan 14 2022, 5:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 400213 llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/byval.ll
|