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

Issue 924843002: Fix for possible crashes due to pointer value being null (Closed)

Created:
5 years, 10 months ago by Sunil Ratnu
Modified:
5 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nasko+codewatch_chromium.org, jam, yuzo+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for possible crashes due to pointer value being null While looking through the code, found some places where we are using pointers even though their values can be null. This patch adds null checks so as not to have any crashes due to pointer value being null. Committed: https://crrev.com/66592ebd9bd467b756155f72b8bee1324d95f9d8 Cr-Commit-Position: refs/heads/master@{#317001}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review comments #

Total comments: 2

Patch Set 3 : Addressing review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M content/browser/accessibility/accessibility_ui.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
Sunil Ratnu
aboxhall@chromium.org: Please review changes in content/browser/accessibility/ jln@chromium.org: Please review changes in content/common/
5 years, 10 months ago (2015-02-16 12:33:24 UTC) #2
Sunil Ratnu
5 years, 10 months ago (2015-02-16 12:34:00 UTC) #4
dmazzoni
lgtm for content/browser/accessibility
5 years, 10 months ago (2015-02-17 16:38:06 UTC) #6
jln (very slow on Chromium)
Sorry, I only review sandboxing related things in content/common. Please ask a content/ reviewer.
5 years, 10 months ago (2015-02-17 18:03:05 UTC) #7
Charlie Reis
You should probably drop the webcursor.cc change and improve the fix to render_frame_impl.cc. Suggestions below. ...
5 years, 10 months ago (2015-02-17 21:26:59 UTC) #10
Sunil Ratnu
Thanks for the review Charlie. I've made the changes suggested by you. Please have a ...
5 years, 10 months ago (2015-02-18 09:04:46 UTC) #13
Charlie Reis
Thanks. LGTM with one change. https://codereview.chromium.org/924843002/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/924843002/diff/40001/content/renderer/render_frame_impl.cc#newcode235 content/renderer/render_frame_impl.cc:235: if (item.httpBody().isNull()) Please change ...
5 years, 10 months ago (2015-02-19 00:51:37 UTC) #14
Sunil Ratnu
https://codereview.chromium.org/924843002/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/924843002/diff/40001/content/renderer/render_frame_impl.cc#newcode235 content/renderer/render_frame_impl.cc:235: if (item.httpBody().isNull()) On 2015/02/19 00:51:37, Charlie Reis wrote: > ...
5 years, 10 months ago (2015-02-19 04:19:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924843002/60001
5 years, 10 months ago (2015-02-19 04:20:55 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/34250)
5 years, 10 months ago (2015-02-19 05:31:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924843002/60001
5 years, 10 months ago (2015-02-19 05:36:20 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/34278)
5 years, 10 months ago (2015-02-19 06:35:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924843002/60001
5 years, 10 months ago (2015-02-19 07:29:04 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 10 months ago (2015-02-19 07:30:03 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 07:30:48 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/66592ebd9bd467b756155f72b8bee1324d95f9d8
Cr-Commit-Position: refs/heads/master@{#317001}

Powered by Google App Engine
This is Rietveld 408576698