Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 3519017: Weed out extreme exponents in strtod. (Closed)

Created:
10 years, 2 months ago by Florian Loitsch
Modified:
9 years, 7 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Weed out extreme exponents in strtod. If a decimal exponent is less than -309 return 0.0. If a decimal exponent is greater than +324 return +infinity. BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=5623

Patch Set 1 #

Total comments: 4

Patch Set 2 : const char* argument + tests. #

Patch Set 3 : Remove unnecessary include from test-strtod.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -32 lines) Patch
M src/conversions.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/strtod.h View 1 chunk +1 line, -1 line 0 comments Download
M src/strtod.cc View 1 3 chunks +45 lines, -10 lines 0 comments Download
M test/cctest/test-strtod.cc View 1 2 7 chunks +65 lines, -19 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Florian Loitsch
10 years, 2 months ago (2010-10-08 11:24:04 UTC) #1
William Hesse
In utils.h we have StrLength, which returns an int, not a size_t. That is needed ...
10 years, 2 months ago (2010-10-13 10:51:33 UTC) #2
Florian Loitsch
http://codereview.chromium.org/3519017/diff/1/3 File test/cctest/test-strtod.cc (right): http://codereview.chromium.org/3519017/diff/1/3#newcode19 test/cctest/test-strtod.cc:19: OS::StrNCpy(buffer, str, kBufferSize); On 2010/10/13 10:51:33, William Hesse wrote: ...
10 years, 2 months ago (2010-10-13 16:18:12 UTC) #3
William Hesse
10 years, 2 months ago (2010-10-14 13:34:03 UTC) #4
LGTM.

Powered by Google App Engine
This is Rietveld 408576698