Changeset 244015 in webkit
- Timestamp:
- Apr 8, 2019, 5:39:48 AM (7 years ago)
- Location:
- releases/WebKitGTK/webkit-2.24
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/canvas/webgl/vertexAttribPointer-with-bad-offset-expected.txt (added)
-
LayoutTests/fast/canvas/webgl/vertexAttribPointer-with-bad-offset.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.24/LayoutTests/ChangeLog
r244013 r244015 1 2019-03-26 Dean Jackson <dino@apple.com> 2 3 vertexAttribPointer must restrict offset parameter 4 https://bugs.webkit.org/show_bug.cgi?id=196261 5 <rdar://problem/48458086> 6 7 Reviewed by Antoine Quint. 8 9 Add a test where the offset parameter is out of bounds. 10 11 * fast/canvas/webgl/vertexAttribPointer-with-bad-offset-expected.txt: Added. 12 * fast/canvas/webgl/vertexAttribPointer-with-bad-offset.html: Added. 13 1 14 2019-03-21 Zalan Bujtas <zalan@apple.com> 2 15 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/ChangeLog
r244014 r244015 1 2019-03-26 Dean Jackson <dino@apple.com> 2 3 vertexAttribPointer must restrict offset parameter 4 https://bugs.webkit.org/show_bug.cgi?id=196261 5 <rdar://problem/48458086> 6 7 Reviewed by Antoine Quint. 8 9 This WebGL function should fail if the offset parameter is 10 not within [0, max 32-bit int]. 11 12 Test: fast/canvas/webgl/vertexAttribPointer-with-bad-offset.html 13 14 * html/canvas/WebGLRenderingContextBase.cpp: 15 (WebCore::WebGLRenderingContextBase::vertexAttribPointer): 16 1 17 2019-03-21 Jer Noble <jer.noble@apple.com> 2 18 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r241799 r244015 4987 4987 return; 4988 4988 } 4989 if (size < 1 || size > 4 || stride < 0 || stride > 255 || offset < 0) { 4990 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "vertexAttribPointer", "bad size, stride or offset"); 4989 if (size < 1 || size > 4) { 4990 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "vertexAttribPointer", "bad size"); 4991 return; 4992 } 4993 if (stride < 0 || stride > 255) { 4994 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "vertexAttribPointer", "bad stride"); 4995 return; 4996 } 4997 if (offset < 0 || offset > std::numeric_limits<int32_t>::max()) { 4998 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "vertexAttribPointer", "bad offset"); 4991 4999 return; 4992 5000 }
Note:
See TracChangeset
for help on using the changeset viewer.