Unlike attribute((no_sanitize("memory"))), this one will cause MSan
to skip the entire function during instrumentation.
Depends on https://reviews.llvm.org/D108029
Paths
| Differential D108199
[msan] Add support for disable_sanitizer_instrumentation attribute ClosedPublic Authored by glider on Aug 17 2021, 3:46 AM.
Details Summary Unlike attribute((no_sanitize("memory"))), this one will cause MSan Depends on https://reviews.llvm.org/D108029
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 17 2021, 3:46 AM This revision is now accepted and ready to land.Aug 17 2021, 10:15 AM melver added inline comments.
This revision was landed with ongoing or failed builds.Aug 20 2021, 6:14 AM Closed by commit rG8dc7dcdca1e0: [msan] Add support for disable_sanitizer_instrumentation attribute (authored by glider). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 367776 clang/docs/MemorySanitizer.rst
clang/test/CodeGen/sanitize-memory-disable.c
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
|
Could apply a similar wording to what I suggested on https://reviews.llvm.org/D108202 to deter people from using it.