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

Issue 1414853008: Validate pixel data array is enough for request by texImage3D and texSubImage3D (Closed)

Created:
5 years, 1 month ago by qiankun
Modified:
5 years, 1 month ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Validate pixel data array is enough for request by texImage3D and texSubImage3D BUG=551750 TEST=conformance2/textures/misc/tex-3d-size-limit.html Committed: https://crrev.com/965cef3e5c3ac49c8f784317804072fe0d2d0b16 Cr-Commit-Position: refs/heads/master@{#361022}

Patch Set 1 #

Total comments: 2

Patch Set 2 : replace hack code #

Total comments: 2

Patch Set 3 : fix padding size #

Patch Set 4 : clean rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -17 lines) Patch
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp View 1 2 4 chunks +6 lines, -6 lines 1 comment Download

Messages

Total messages: 18 (5 generated)
qiankun
conformance2/textures/misc/tex-3d-size-limit.html covers this bug. Please help to review this CL. Thanks!
5 years, 1 month ago (2015-11-10 09:03:28 UTC) #3
Zhenyao Mo
https://codereview.chromium.org/1414853008/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1414853008/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5780 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5780: totalBytesRequired *= depth; This is a bad hack. You ...
5 years, 1 month ago (2015-11-12 02:01:20 UTC) #4
qiankun
https://codereview.chromium.org/1414853008/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1414853008/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5780 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5780: totalBytesRequired *= depth; On 2015/11/12 02:01:20, Zhenyao Mo wrote: ...
5 years, 1 month ago (2015-11-12 05:46:19 UTC) #5
Zhenyao Mo
https://codereview.chromium.org/1414853008/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp File third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp (right): https://codereview.chromium.org/1414853008/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp#newcode2012 third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp:2012: return GL_INVALID_VALUE; Another issue: see above, "last row needs ...
5 years, 1 month ago (2015-11-12 11:31:52 UTC) #6
qiankun
https://codereview.chromium.org/1414853008/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp File third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp (right): https://codereview.chromium.org/1414853008/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp#newcode2012 third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp:2012: return GL_INVALID_VALUE; On 2015/11/12 11:31:52, Zhenyao Mo wrote: > ...
5 years, 1 month ago (2015-11-13 08:29:59 UTC) #7
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1414853008/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp File third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp (right): https://codereview.chromium.org/1414853008/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp#newcode2006 third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp:2006: checkedValue *= (height * depth - 1); More changes ...
5 years, 1 month ago (2015-11-20 00:15:42 UTC) #8
qiankun
On 2015/11/20 00:15:42, Ken Russell wrote: > https://codereview.chromium.org/1414853008/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp > File third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp > (right): > > ...
5 years, 1 month ago (2015-11-20 01:01:04 UTC) #9
Ken Russell (switch to Gerrit)
LGTM. Thanks for this contribution.
5 years, 1 month ago (2015-11-20 23:26:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414853008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414853008/60001
5 years, 1 month ago (2015-11-20 23:28:18 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/138431)
5 years, 1 month ago (2015-11-21 02:55:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414853008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414853008/60001
5 years, 1 month ago (2015-11-21 14:12:25 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-21 15:23:17 UTC) #17
commit-bot: I haz the power
5 years, 1 month ago (2015-11-21 15:24:21 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/965cef3e5c3ac49c8f784317804072fe0d2d0b16
Cr-Commit-Position: refs/heads/master@{#361022}

Powered by Google App Engine
This is Rietveld 408576698