This is an archive of the discontinued LLVM Phabricator instance.

[fuzzer] Don't crash if LLVMFuzzerMutate was called by CustomCrossOver
ClosedPublic

Authored by vitalybuka on Mar 7 2017, 12:53 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka created this revision.Mar 7 2017, 12:53 AM
kcc accepted this revision.Mar 7 2017, 12:22 PM

LGTM with a nit

lib/Fuzzer/FuzzerMutate.h
146 ↗(On Diff #90811)

CustomCrossOver needs its own buffer as a custom implementation may call
LLVMFuzzerMutate, which in turn may resize MutateInPlaceHere

This revision is now accepted and ready to land.Mar 7 2017, 12:22 PM
vitalybuka marked an inline comment as done.Mar 7 2017, 12:40 PM
vitalybuka updated this revision to Diff 90917.Mar 7 2017, 12:45 PM

Prev snapshot was invalid.

This revision was automatically updated to reflect the committed changes.