Insert shadow checks after each load.
DO NOT COMMIT. Experimental.
Paths
| Differential D40852
[msan] Strict checking of loads. Needs ReviewPublic Authored by eugenis on Dec 5 2017, 1:32 PM. This revision needs review, but there are no reviewers specified.
Details
Summary Insert shadow checks after each load. DO NOT COMMIT. Experimental.
Diff Detail
Event TimelineComment Actions Btw, this makes building msan unit tests insanely slow. Must be all the extra basic blocks. I'm guessing this change does not exactly improve code size, too. Comment Actions A reasonable compromise could be to check function call arguments. I.e. allow loading and storing (basically, copying) uninit values, but not passing them to other functions as arguments or return values.
Revision Contents
Diff 125599 llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
|