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

Issue 2411713002: Fix parseHTMLInteger (Closed)

Created:
4 years, 2 months ago by rwlbuis
Modified:
4 years, 2 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch, loading-reviews+parser_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix parseHTMLInteger In r423595 I made a change that caused toIntegralType to be called with input std::numeric_limits<int>::min which it can't handle because it relies on an intermediate integer to store the value. So inline the calculation and use an unsigned integer for the calculation, casting to int when returning. BUG=654324 Committed: https://crrev.com/cbfd866cbc7981e453dfd9afae669daa567b5cb2 Cr-Commit-Position: refs/heads/master@{#425055}

Patch Set 1 #

Patch Set 2 : Fix steps #

Patch Set 3 : Add unit test #

Patch Set 4 : Fix warning on win #

Patch Set 5 : Try to fix warning for test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -18 lines) Patch
M third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp View 1 2 3 3 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserIdiomsTest.cpp View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
rwlbuis
PTAL. I thought about making this work using charactersToUIntStrict, but then afterwards we have to ...
4 years, 2 months ago (2016-10-11 23:21:20 UTC) #5
tkent
Please add a test. C++ unit test would be reasonable in this case, I think.
4 years, 2 months ago (2016-10-12 00:30:25 UTC) #6
rwlbuis
On 2016/10/12 00:30:25, tkent wrote: > Please add a test. C++ unit test would be ...
4 years, 2 months ago (2016-10-12 13:18:00 UTC) #7
tkent
lgtm
4 years, 2 months ago (2016-10-12 22:55:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2411713002/40001
4 years, 2 months ago (2016-10-12 22:55:59 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/275106)
4 years, 2 months ago (2016-10-12 23:59:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2411713002/100001
4 years, 2 months ago (2016-10-13 15:34:51 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 2 months ago (2016-10-13 16:37:45 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 16:40:51 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cbfd866cbc7981e453dfd9afae669daa567b5cb2
Cr-Commit-Position: refs/heads/master@{#425055}

Powered by Google App Engine
This is Rietveld 408576698