This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Add weak hooks for Windows,
ClosedPublic

Authored by mpividori on Feb 5 2017, 3:55 AM.

Details

Summary

I add weak hooks for Windows. As we use the macro: SANITIZER_INTERFACE_WEAK_DEF() I don't need to modify the header file: sanitizer_common_interceptors.h.
I think we could remove the flag: SANITIZER_INTERCEPTOR_HOOKS because the only missing case is FreeBSD, and I don't see any problem in adding weak hooks for FreeBSD too.

After this diff, many tests were fixed for libFuzzer.

Diff Detail

Repository
rL LLVM

Event Timeline

mpividori created this revision.Feb 5 2017, 3:55 AM

@alekseyshl Do you agree with these changes?

This revision is now accepted and ready to land.Feb 7 2017, 10:23 PM
This revision was automatically updated to reflect the committed changes.