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

Issue 2955813002: viz: Replace a DCHECK with proper error handling. (Closed)

Created:
3 years, 6 months ago by sadrul
Modified:
3 years, 5 months ago
Reviewers:
danakj, reveman
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

viz: Replace a DCHECK with proper error handling. The code processes input from untrusted clients (e.g. renderers). So instead of enforcing valid input through DCHECK(), properly handle unsupported input and return invalid memory handles. BUG=733482 Review-Url: https://codereview.chromium.org/2955813002 Cr-Commit-Position: refs/heads/master@{#482425} Committed: https://chromium.googlesource.com/chromium/src/+/1e7ac4345c9b98f7a32115809a64f7e86bee33e6

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -8 lines) Patch
M components/viz/common/server_gpu_memory_buffer_manager.cc View 1 chunk +12 lines, -8 lines 0 comments Download
M components/viz/common/server_gpu_memory_buffer_manager_unittest.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
sadrul
3 years, 5 months ago (2017-06-26 13:55:42 UTC) #9
reveman
Thanks for the test. Lgtm.
3 years, 5 months ago (2017-06-26 14:39:26 UTC) #10
danakj
driveby LGTM https://codereview.chromium.org/2955813002/diff/20001/components/viz/common/server_gpu_memory_buffer_manager_unittest.cc File components/viz/common/server_gpu_memory_buffer_manager_unittest.cc (right): https://codereview.chromium.org/2955813002/diff/20001/components/viz/common/server_gpu_memory_buffer_manager_unittest.cc#newcode253 components/viz/common/server_gpu_memory_buffer_manager_unittest.cc:253: } Can you add something that shows ...
3 years, 5 months ago (2017-06-26 15:43:42 UTC) #12
sadrul
https://codereview.chromium.org/2955813002/diff/20001/components/viz/common/server_gpu_memory_buffer_manager_unittest.cc File components/viz/common/server_gpu_memory_buffer_manager_unittest.cc (right): https://codereview.chromium.org/2955813002/diff/20001/components/viz/common/server_gpu_memory_buffer_manager_unittest.cc#newcode253 components/viz/common/server_gpu_memory_buffer_manager_unittest.cc:253: } On 2017/06/26 15:43:42, danakj wrote: > Can you ...
3 years, 5 months ago (2017-06-26 21:48:58 UTC) #17
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/2955813002/40001
3 years, 5 months ago (2017-06-26 21:49:38 UTC) #20
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 21:54:29 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1e7ac4345c9b98f7a32115809a64...

Powered by Google App Engine
This is Rietveld 408576698