This is an archive of the discontinued LLVM Phabricator instance.

[libc] Set min precision for strtofloat fuzz
ClosedPublic

Authored by michaelrj on Jul 12 2023, 3:23 PM.

Details

Summary

MPFR has a minimum precision of 2, but the strtofloat fuzz sometimes
would request a precision of 1 for the case of the minimum subnormal.
This patch tells the fuzzer to ignore any case where the precision would
go below 2.

Diff Detail

Event Timeline

michaelrj created this revision.Jul 12 2023, 3:23 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 12 2023, 3:23 PM
michaelrj requested review of this revision.Jul 12 2023, 3:23 PM
michaelrj edited the summary of this revision. (Show Details)Jul 12 2023, 4:22 PM
michaelrj updated this revision to Diff 539788.Jul 12 2023, 4:22 PM

change to skip cases where the precision is too low

lntue accepted this revision.Jul 13 2023, 3:10 PM
This revision is now accepted and ready to land.Jul 13 2023, 3:10 PM
This revision was landed with ongoing or failed builds.Jul 18 2023, 4:28 PM
This revision was automatically updated to reflect the committed changes.