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

Issue 24095009: KURL not handling NULL m_string members properly. (Closed)

Created:
7 years, 3 months ago by Tom Sepez
Modified:
7 years, 3 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews
Visibility:
Public.

Description

KURL not handling NULL m_string members properly. Due to some recent refactorings, its possible to get a NULL m_string inside of KURL given some bad UFT-8 input. This corrects the checks in several places where we would formerly segv. BUG=275868 R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157922

Patch Set 1 #

Patch Set 2 : Fix overzealous edit. #

Total comments: 2

Patch Set 3 : avoid duplicate check in initProtocolIsInHTTPFamily() #

Total comments: 1

Patch Set 4 : Remove redundant isNull check in several other places. #

Patch Set 5 : Remove redundant isNull check in several other places. #

Patch Set 6 : Please upload my base files. #

Patch Set 7 : Fix regression in set-href-attribute-pathname.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -21 lines) Patch
M Source/weborigin/KURL.cpp View 1 2 3 4 5 6 7 chunks +23 lines, -21 lines 0 comments Download
M Source/weborigin/KURLTest.cpp View 1 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Tom Sepez
Adam, please review. I'm afraid you'll have to look at inline diffs, since reitveld isn't ...
7 years, 3 months ago (2013-09-17 19:34:37 UTC) #1
Tom Sepez
> I'm afraid you'll have to look at inline diffs, since reitveld isn't co-operating at ...
7 years, 3 months ago (2013-09-17 19:38:02 UTC) #2
abarth-chromium
https://codereview.chromium.org/24095009/diff/5001/Source/weborigin/KURL.cpp File Source/weborigin/KURL.cpp (right): https://codereview.chromium.org/24095009/diff/5001/Source/weborigin/KURL.cpp#newcode786 Source/weborigin/KURL.cpp:786: if (m_string.isNull() || !m_isValid) { Shouldn't m_string.isNull() imply !m_isValid?
7 years, 3 months ago (2013-09-17 19:48:34 UTC) #3
Tom Sepez
https://codereview.chromium.org/24095009/diff/5001/Source/weborigin/KURL.cpp File Source/weborigin/KURL.cpp (right): https://codereview.chromium.org/24095009/diff/5001/Source/weborigin/KURL.cpp#newcode786 Source/weborigin/KURL.cpp:786: if (m_string.isNull() || !m_isValid) { On 2013/09/17 19:48:35, abarth ...
7 years, 3 months ago (2013-09-17 19:55:37 UTC) #4
abarth-chromium
https://codereview.chromium.org/24095009/diff/12001/Source/weborigin/KURL.cpp File Source/weborigin/KURL.cpp (right): https://codereview.chromium.org/24095009/diff/12001/Source/weborigin/KURL.cpp#newcode300 Source/weborigin/KURL.cpp:300: if (m_string.isNull() || !m_isValid) I don't understand why this ...
7 years, 3 months ago (2013-09-17 19:57:02 UTC) #5
Tom Sepez
On 2013/09/17 19:57:02, abarth wrote: > https://codereview.chromium.org/24095009/diff/12001/Source/weborigin/KURL.cpp > File Source/weborigin/KURL.cpp (right): > > https://codereview.chromium.org/24095009/diff/12001/Source/weborigin/KURL.cpp#newcode300 > ...
7 years, 3 months ago (2013-09-17 20:05:09 UTC) #6
abarth-chromium
lgtm
7 years, 3 months ago (2013-09-17 20:07:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/24095009/29001
7 years, 3 months ago (2013-09-17 22:09:15 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-17 23:15:18 UTC) #9
Message was sent while issue was closed.
Change committed as 157922

Powered by Google App Engine
This is Rietveld 408576698