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

Issue 2046223003: Prevent Null input in texSubImage2D(3D) (Closed)

Created:
4 years, 6 months ago by xidachen
Modified:
4 years, 6 months ago
CC:
chromium-reviews, blink-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent Null input in texSubImage2D(3D) In a previous CL which packs some repeated code into helper functions, I made a mistake so that tex(Sub)Image2D(3D) can always take null input for DOMArrayBufferView. However, I took a look at the original code before my change, it turns out that texImage2D and texImage3D is allowed to take null input, but texSubImage2D and texSubImage3D is not allowed. The stack trace in the bug also suggests that it crashes because the input is null. This CL makes change for that. BUG=618299 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/422466ba6888ba92906331f2adfe56123d722415 Cr-Commit-Position: refs/heads/master@{#398891}

Patch Set 1 #

Total comments: 2

Patch Set 2 : change if to switch #

Total comments: 1

Patch Set 3 : use functionID in switch so that all cases are covered without a default #

Patch Set 4 : forgot a break line... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
xidachen
PTAL
4 years, 6 months ago (2016-06-08 20:50:11 UTC) #5
Ken Russell (switch to Gerrit)
LGTM with comment -- but *please* look into the conformance tests and figure out how ...
4 years, 6 months ago (2016-06-08 21:13:07 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046223003/20001
4 years, 6 months ago (2016-06-09 01:04:31 UTC) #8
xidachen
I am surprised that the null input case is not caught in my previous CL. ...
4 years, 6 months ago (2016-06-09 01:12:08 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/78839)
4 years, 6 months ago (2016-06-09 01:13:08 UTC) #11
Ken Russell (switch to Gerrit)
The new code LGTM once it compiles and the comment below addressed. https://codereview.chromium.org/2046223003/diff/20001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ...
4 years, 6 months ago (2016-06-09 05:31:24 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046223003/40001
4 years, 6 months ago (2016-06-09 12:20:43 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/84973)
4 years, 6 months ago (2016-06-09 13:24:01 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046223003/60001
4 years, 6 months ago (2016-06-09 13:40:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046223003/60001
4 years, 6 months ago (2016-06-09 15:27:23 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-09 15:32:42 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 15:32:44 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 15:34:10 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/422466ba6888ba92906331f2adfe56123d722415
Cr-Commit-Position: refs/heads/master@{#398891}

Powered by Google App Engine
This is Rietveld 408576698