[libc-commits] [PATCH] D147474: [libc] fix strtofloat on large exponents
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Apr 3 14:04:31 PDT 2023
michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147474
Files:
libc/src/__support/str_to_float.h
libc/test/src/stdlib/strtod_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147474.510603.patch
Type: text/x-patch
Size: 31475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230403/009e8d4f/attachment-0001.bin>
More information about the libc-commits
mailing list