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

Issue 1908893002: Check document.firstChild() exists to avoid nullptr deref (Closed)

Created:
4 years, 8 months ago by kochi
Modified:
4 years, 8 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, hayato, rwlbuis, sof, tkent
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check document.firstChild() exists to avoid nullptr deref document.firstChild() can return nullptr when document has no Children. This CL is in response for the comment in https://codereview.chromium.org/1910433002/ BUG=405707 Committed: https://crrev.com/04c7245bc4ff706aaf9c1af480fd3065faf7478b Cr-Commit-Position: refs/heads/master@{#388984}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/VisitedLinkState.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
kochi
Elliott, I tried to write a unit test for this and found that this code ...
4 years, 8 months ago (2016-04-21 10:02:14 UTC) #3
esprehn
lgtm
4 years, 8 months ago (2016-04-21 18:08:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908893002/1
4 years, 8 months ago (2016-04-21 23:03:06 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-22 00:54:02 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:42:48 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/04c7245bc4ff706aaf9c1af480fd3065faf7478b
Cr-Commit-Position: refs/heads/master@{#388984}

Powered by Google App Engine
This is Rietveld 408576698