⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 244015 in webkit


Ignore:
Timestamp:
Apr 8, 2019, 5:39:48 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r243506 - vertexAttribPointer must restrict offset parameter
https://bugs.webkit.org/show_bug.cgi?id=196261
<rdar://problem/48458086>

Reviewed by Antoine Quint.

Source/WebCore:

This WebGL function should fail if the offset parameter is
not within [0, max 32-bit int].

Test: fast/canvas/webgl/vertexAttribPointer-with-bad-offset.html

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::WebGLRenderingContextBase::vertexAttribPointer):

LayoutTests:

Add a test where the offset parameter is out of bounds.

  • fast/canvas/webgl/vertexAttribPointer-with-bad-offset-expected.txt: Added.
  • fast/canvas/webgl/vertexAttribPointer-with-bad-offset.html: Added.
Location:
releases/WebKitGTK/webkit-2.24
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.24/LayoutTests/ChangeLog

    r244013 r244015  
     12019-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
    1142019-03-21  Zalan Bujtas  <zalan@apple.com>
    215
  • releases/WebKitGTK/webkit-2.24/Source/WebCore/ChangeLog

    r244014 r244015  
     12019-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
    1172019-03-21  Jer Noble  <jer.noble@apple.com>
    218
  • releases/WebKitGTK/webkit-2.24/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r241799 r244015  
    49874987        return;
    49884988    }
    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");
    49914999        return;
    49925000    }
Note: See TracChangeset for help on using the changeset viewer.