This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Diff 37 - [FuzzerSupport] Decouple UtilIO from external Functions.
AbandonedPublic

Authored by mpividori on Dec 19 2016, 2:16 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

mpividori updated this revision to Diff 82011.Dec 19 2016, 2:16 PM
mpividori retitled this revision from to [libFuzzer] Diff 37 - [FuzzerSupport] Decouple UtilIO from external Functions..
mpividori updated this object.
mpividori added reviewers: kcc, zturner.
mpividori set the repository for this revision to rL LLVM.
mpividori added a subscriber: llvm-commits.
aizatsky accepted this revision.Dec 20 2016, 1:42 PM
aizatsky edited edge metadata.
This revision is now accepted and ready to land.Dec 20 2016, 1:42 PM
zturner edited edge metadata.Dec 21 2016, 10:12 AM

The logic is not 100% equivalent here. I don't know how much this matters, but if the DuplicateFile call succeeds but the OpenFile call fails, then the original logic would not call __sanitizer_set_report_fd. In the new logic, it will. I don't know how likely this is to happen, so maybe the decoupling here is worth it until we have an issue with this edge case in practice.

mpividori abandoned this revision.Jan 4 2017, 6:09 PM