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

Issue 4129012: Fix a bug that could occur when converting strings with leading characters ab... (Closed)

Created:
10 years, 1 month ago by erikwright (departed)
Modified:
9 years, 7 months ago
Reviewers:
MAD
CC:
chromium-reviews, brettw-cc_chromium.org, jshin+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix a bug that could occur when converting strings with leading characters above 127. BUG=None TEST=base_unittests --gtest_filter=*StringToInt* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64789

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M base/string_number_conversions.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/string_number_conversions_unittest.cc View 1 2 chunks +7 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
erikwright (departed)
Hi MAD, Here is the fix we talked about. It's not an issue for char16 ...
10 years, 1 month ago (2010-11-01 20:02:03 UTC) #1
MAD
LGTM... I guess the new test case confirms that this was the only place that ...
10 years, 1 month ago (2010-11-01 21:13:40 UTC) #2
erikwright (departed)
FYI. Small change to pass try-bots on Linux/Mac.
10 years, 1 month ago (2010-11-02 18:44:10 UTC) #3
MAD
Still LGTM... Thanks! BYE MAD http://codereview.chromium.org/4129012/diff/6001/7002 File base/string_number_conversions_unittest.cc (right): http://codereview.chromium.org/4129012/diff/6001/7002#newcode168 base/string_number_conversions_unittest.cc:168: const char16 negative_wide_input[] = ...
10 years, 1 month ago (2010-11-02 18:53:24 UTC) #4
erikwright (departed)
10 years, 1 month ago (2010-11-02 19:32:22 UTC) #5
http://codereview.chromium.org/4129012/diff/6001/7002
File base/string_number_conversions_unittest.cc (right):

http://codereview.chromium.org/4129012/diff/6001/7002#newcode168
base/string_number_conversions_unittest.cc:168: const char16
negative_wide_input[] = { 0xFF4D, '4', '2', 0};
On 2010/11/02 18:53:25, mad1 wrote:
> I was wondering about that... But didn't mention since I guess you had tried
> building the patch... Next time I'll mention it anyway... :-)
> 

The other one did build on Win (locally), but I was having trouble with 'gcl
try' that prevented me from submitting the job to linux+mac. Finally had to
submit a CL to depot_tools to get it to work.

Powered by Google App Engine
This is Rietveld 408576698