This is an archive of the discontinued LLVM Phabricator instance.

Add dfsan_weak_hook_memcmp
ClosedPublic

Authored by kcc on May 6 2015, 4:21 PM.

Details

Summary

Add a weak hook to be called from dfsan's custom memcmp.
The primary user will be lib/Fuzzer.
If this works well we'll add more hooks (strcmp, etc).

Diff Detail

Event Timeline

kcc updated this revision to Diff 25104.May 6 2015, 4:21 PM
kcc retitled this revision from to Add dfsan_weak_hook_memcmp.
kcc updated this object.
kcc edited the test plan for this revision. (Show Details)
kcc added a reviewer: pcc.
kcc added a subscriber: Unknown Object (MLST).
kcc updated this revision to Diff 25107.May 6 2015, 4:46 PM

pass the caller PC to the memcmp hook as the first parameter

pcc accepted this revision.May 6 2015, 4:49 PM
pcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 6 2015, 4:49 PM
kcc closed this revision.May 6 2015, 5:08 PM