This is an archive of the discontinued LLVM Phabricator instance.

[libc] fix strtofloat on large exponents
ClosedPublic

Authored by michaelrj on Apr 3 2023, 2:04 PM.

Details

Summary

Previously if you specified an exponent of more than 10000 in string to
float (e.g. "1e10001") it would treat it as 10000. A bug was discovered
where by having more than 10000 zeroes after a decimal point and an
exponent of more than 10000 this would cause the code to return the
incorrect value.

Diff Detail

Event Timeline

michaelrj created this revision.Apr 3 2023, 2:04 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 3 2023, 2:04 PM
michaelrj requested review of this revision.Apr 3 2023, 2:04 PM
lntue accepted this revision.Apr 3 2023, 8:26 PM
This revision is now accepted and ready to land.Apr 3 2023, 8:26 PM
This revision was automatically updated to reflect the committed changes.