This is an archive of the discontinued LLVM Phabricator instance.

[DFSan] Add __dfsan_mem_transfer_callback.
ClosedPublic

Authored by morehouse on Feb 28 2020, 2:02 PM.

Details

Summary

When -dfsan-event-callbacks is specified, insert a call to
__dfsan_mem_transfer_callback on every memcpy and memmove.

Diff Detail

Event Timeline

morehouse created this revision.Feb 28 2020, 2:02 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 28 2020, 2:02 PM
Herald added subscribers: llvm-commits, Restricted Project, hiraditya. · View Herald Transcript
kcc accepted this revision.Feb 28 2020, 2:14 PM

LGTM

We *may* need to add more arguments to these callbacks (with the data pointers) later.
Right now I am not sure.

This revision is now accepted and ready to land.Feb 28 2020, 2:14 PM
This revision was automatically updated to reflect the committed changes.