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

Issue 2764403002: Make sure buffers are large enough to hold the Result structure. (Closed)

Created:
3 years, 9 months ago by Geoff Lang
Modified:
3 years, 9 months ago
Reviewers:
piman
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure buffers are large enough to hold the Result structure. The passthrough command decoder would correctly compute that it cannot write any results to the buffer but would still write out of bounds when trying to write the size member of the result when the buffer size is 0. BUG=703861 BUG=703724 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2764403002 Cr-Commit-Position: refs/heads/master@{#458868} Committed: https://chromium.googlesource.com/chromium/src/+/bdd9f645d6e6bb56bfa31c74c88a8842fda5d9d1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -49 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/common_decoder.h View 1 chunk +4 lines, -1 line 0 comments Download
M gpu/command_buffer/service/common_decoder.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc View 25 chunks +31 lines, -25 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc View 21 chunks +21 lines, -21 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
Geoff Lang
PTAL
3 years, 9 months ago (2017-03-22 18:49:16 UTC) #7
piman
LGTM I don't have access to those bugs, but the fixes make sense on their ...
3 years, 9 months ago (2017-03-22 20:25:51 UTC) #8
Geoff Lang
On 2017/03/22 20:25:51, piman wrote: > LGTM > I don't have access to those bugs, ...
3 years, 9 months ago (2017-03-22 20:44:21 UTC) #9
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/2764403002/1
3 years, 9 months ago (2017-03-22 20:45:27 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 20:52:25 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/bdd9f645d6e6bb56bfa31c74c88a...

Powered by Google App Engine
This is Rietveld 408576698