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

Issue 217593004: GPU: Fix NULL gpu::Buffer dereference. (Closed)

Created:
6 years, 8 months ago by epenner
Modified:
6 years, 8 months ago
Reviewers:
epennerAtGoogle, piman
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

GPU: Fix NULL gpu::Buffer dereference. After refactoring buffer from POD type to pointers, we missed two possible NULL dereferences. This patch handles these gracefully, as well as adds some DCHECKs in other places (where we can safely assume Buffers are not NULL). BUG=177063, 353822, 357140 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260717

Patch Set 1 #

Patch Set 2 : Fix build. #

Patch Set 3 : #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -10 lines) Patch
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 2 chunks +6 lines, -8 lines 0 comments Download
M gpu/command_buffer/client/mapped_memory.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/transfer_buffer.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/command_buffer_service.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
epennerAtGoogle
Ptal. I looked through every "->size()" in my patch and managed to find one more ...
6 years, 8 months ago (2014-03-28 22:44:31 UTC) #1
piman
LGTM. Note, I have https://codereview.chromium.org/215803002 that changes this code anyway, but let's take this since ...
6 years, 8 months ago (2014-03-28 22:48:28 UTC) #2
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-28 22:55:39 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/217593004/1
6 years, 8 months ago (2014-03-28 22:56:49 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-28 23:38:52 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-03-28 23:38:52 UTC) #6
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-29 00:30:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/217593004/40001
6 years, 8 months ago (2014-03-29 00:31:43 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-29 02:06:45 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-03-29 02:06:46 UTC) #10
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-29 02:23:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/217593004/40001
6 years, 8 months ago (2014-03-29 02:24:19 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-29 04:01:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-03-29 04:01:23 UTC) #14
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-31 20:02:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/217593004/40001
6 years, 8 months ago (2014-03-31 20:03:32 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 20:04:05 UTC) #17
commit-bot: I haz the power
Failed to apply patch for gpu/command_buffer/client/mapped_memory.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-03-31 20:04:06 UTC) #18
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-31 21:09:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/217593004/50001
6 years, 8 months ago (2014-03-31 21:10:18 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 00:36:39 UTC) #21
Message was sent while issue was closed.
Change committed as 260717

Powered by Google App Engine
This is Rietveld 408576698