This is an archive of the discontinued LLVM Phabricator instance.

[MSan] Add functions to enable/disable interceptor checks.
ClosedPublic

Authored by morehouse on Jul 3 2018, 12:21 PM.

Event Timeline

morehouse created this revision.Jul 3 2018, 12:21 PM

I'd prefer
msan_scoped_enable_interceptor_checks
msan_scoped_disable_interceptor_checks
(without "re")
Please add tests.

morehouse updated this revision to Diff 153983.Jul 3 2018, 2:37 PM
  • Add _scoped_ to function names.
  • Add test.
eugenis accepted this revision.Jul 3 2018, 2:47 PM
eugenis added inline comments.
compiler-rt/test/msan/scoped-interceptors.cc
32

repeat this line one more time to make sure that the first call did not somehow re-enable interceptor checks.

This revision is now accepted and ready to land.Jul 3 2018, 2:47 PM
morehouse updated this revision to Diff 154013.Jul 3 2018, 4:14 PM
  • Repeat puts().
morehouse marked an inline comment as done.Jul 3 2018, 4:15 PM
This revision was automatically updated to reflect the committed changes.