DescriptionFix StringToDouble parsing for large exponent
1. strtod() need to maintain |end| pointer, should not stop immediately
when detected overflow
2. It is possible the the exponent is larger than max-exponent, but
combined with mantissa, the final value is within the range of
double. This CL mitigate this issue (use INT_MAX instead), to make it
possible to parse values near the max/min double boundaries.
found by libfuzzer
TEST=base_unittest --gtest_filter=StringNumberConversionsTest.*
BUG=542881
Committed: https://crrev.com/094232aa420680ea0c8b4bb5e465315bd5972c2f
Cr-Commit-Position: refs/heads/master@{#425501}
Patch Set 1 : Fix StringToDouble parsing for large exponent #
Messages
Total messages: 20 (14 generated)
|