This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Make msan.test:SimpleCmpTest succeed with less trials.
ClosedPublic

Authored by dokyungs on Aug 21 2020, 3:47 PM.

Details

Summary

Currently SimpleCmpTest passes after 9,831,994 trials on x86_64/Linux
when the number of given trials is 10,000,000, just a little bigger than
that. This patch modifies SimpleCmpTest.cpp so that the test passes with less
trials, reducing its chances of future failures as libFuzzer evolves. More
specifically, this patch changes a 32-bit equality check to a 8-bit equality
check, making this test pass at 4,635,303 trials.

Diff Detail

Event Timeline

dokyungs created this revision.Aug 21 2020, 3:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2020, 3:47 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dokyungs requested review of this revision.Aug 21 2020, 3:47 PM
This revision is now accepted and ready to land.Aug 21 2020, 5:02 PM
vitalybuka accepted this revision.Aug 23 2020, 11:25 PM