This is an archive of the discontinued LLVM Phabricator instance.

[dfsan] Add a test case of storing zero
ClosedPublic

Authored by stephan.yichao.zhao on Dec 3 2020, 9:41 PM.

Details

Summary
This covers a branch in storeShadow.

Diff Detail

Event Timeline

stephan.yichao.zhao requested review of this revision.Dec 3 2020, 9:41 PM
stephan.yichao.zhao created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 3 2020, 9:41 PM
morehouse added inline comments.Dec 4 2020, 6:18 AM
llvm/test/Instrumentation/DataFlowSanitizer/store.ll
163

Why is it storing i64 shadow?

stephan.yichao.zhao marked an inline comment as done.Dec 4 2020, 8:36 AM
stephan.yichao.zhao added inline comments.
llvm/test/Instrumentation/DataFlowSanitizer/store.ll
163

It is testing this branch:

https://github.com/llvm/llvm-project/blob/master/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp#L1465

The shadow of (i32 0) is (i64 0).

morehouse accepted this revision.Dec 4 2020, 9:39 AM
morehouse added inline comments.
llvm/test/Instrumentation/DataFlowSanitizer/store.ll
163

Right, of course. I was thinking of TLS, where the shadow would be i16.

This revision is now accepted and ready to land.Dec 4 2020, 9:39 AM