2010-07-02 Zhenyao Mo <zmo@google.com>
authorzmo@google.com <zmo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Jul 2010 16:20:58 +0000 (16:20 +0000)
committerzmo@google.com <zmo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Jul 2010 16:20:58 +0000 (16:20 +0000)
commit48b948b5a1fa6cb6a062ae155b21c55330257703
treef78fb89f1573d8f8c891188fdee08721ee311267
parentb405bc443501d7946fc280f85f7f7d7492de9374
2010-07-02  Zhenyao Mo  <zmo@google.com>

        Reviewed by Dimitri Glazkov.

        Need to validate the size of the incoming arrays for uniform* functions
        https://bugs.webkit.org/show_bug.cgi?id=41383

        * fast/canvas/webgl/gl-uniform-arrays-expected.txt: Test against invalid array size.
        * fast/canvas/webgl/gl-uniform-arrays.html: Ditto.
        * fast/canvas/webgl/gl-uniformmatrix4fv-expected.txt: Ditto.
        * fast/canvas/webgl/gl-uniformmatrix4fv.html: Ditto.
2010-07-02  Zhenyao Mo  <zmo@google.com>

        Reviewed by Dimitri Glazkov.

        Need to validate the size of the incoming arrays for uniform* functions
        https://bugs.webkit.org/show_bug.cgi?id=41383

        * html/canvas/WebGLRenderingContext.cpp: Validate input array size.
        (WebCore::WebGLRenderingContext::uniform1fv):
        (WebCore::WebGLRenderingContext::uniform1iv):
        (WebCore::WebGLRenderingContext::uniform2fv):
        (WebCore::WebGLRenderingContext::uniform2iv):
        (WebCore::WebGLRenderingContext::uniform3fv):
        (WebCore::WebGLRenderingContext::uniform3iv):
        (WebCore::WebGLRenderingContext::uniform4fv):
        (WebCore::WebGLRenderingContext::uniform4iv):
        (WebCore::WebGLRenderingContext::uniformMatrix2fv):
        (WebCore::WebGLRenderingContext::uniformMatrix3fv):
        (WebCore::WebGLRenderingContext::uniformMatrix4fv):
        (WebCore::WebGLRenderingContext::validateUniformParameters):
        (WebCore::WebGLRenderingContext::validateUniformMatrixParameters):
        * html/canvas/WebGLRenderingContext.h: Add helper functions.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62384 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/webgl/gl-uniform-arrays-expected.txt
LayoutTests/fast/canvas/webgl/gl-uniform-arrays.html
LayoutTests/fast/canvas/webgl/gl-uniformmatrix4fv-expected.txt
LayoutTests/fast/canvas/webgl/gl-uniformmatrix4fv.html
WebCore/ChangeLog
WebCore/html/canvas/WebGLRenderingContext.cpp
WebCore/html/canvas/WebGLRenderingContext.h