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

Issue 2692573002: Auto-generate null checks for pointer arguemnts in the passthrough cmd decoder. (Closed)

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

Description

Auto-generate null checks for pointer arguemnts in the passthrough cmd decoder. Argument validation wasn't added previously because it was mostly for enum checks. These null checks prevent issues where the buffer is not big enough and null was returned when getting immediate data. BUG=602737 CQ_INCLUDE_TRYBOTS=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/2692573002 Cr-Commit-Position: refs/heads/master@{#449979} Committed: https://chromium.googlesource.com/chromium/src/+/7b0ca8add9594566989b917f50fb948556125698

Patch Set 1 #

Total comments: 2

Patch Set 2 : use nullptr instead of NULL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -0 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 6 chunks +20 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc View 1 62 chunks +186 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
Geoff Lang
PTAL
3 years, 10 months ago (2017-02-10 20:44:25 UTC) #5
Zhenyao Mo
lgtm with a nit https://codereview.chromium.org/2692573002/diff/1/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/2692573002/diff/1/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode8887 gpu/command_buffer/build_gles2_cmd_buffer.py:8887: f.write(" if (%s == NULL) ...
3 years, 10 months ago (2017-02-10 21:01:23 UTC) #7
Geoff Lang
https://codereview.chromium.org/2692573002/diff/1/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/2692573002/diff/1/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode8887 gpu/command_buffer/build_gles2_cmd_buffer.py:8887: f.write(" if (%s == NULL) {\n" % self.name) On ...
3 years, 10 months ago (2017-02-13 15:52:24 UTC) #10
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/2692573002/20001
3 years, 10 months ago (2017-02-13 15:52:59 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 16:49:22 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7b0ca8add9594566989b917f50fb...

Powered by Google App Engine
This is Rietveld 408576698