[Webkit-unassigned] [Bug 163715] New: Passing a number as the pixel parameter to texImage2D() doesn't thrown an exception

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 19 18:29:53 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=163715

            Bug ID: 163715
           Summary: Passing a number as the pixel parameter to
                    texImage2D() doesn't thrown an exception
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com
                CC: dino at apple.com

The IDL bindings code converts the argument

ArrayBufferView? pixels

to

auto pixels = toArrayBufferView(state->uncheckedArgument(8));

inside JSWebGLRenderingContextBase.cpp

toArrayBufferView returns nullptr if the input is a wrong type, so this case is indistinguishable from passing "null" in javascript.

However, passing an unknown type should throw an exception, and passing "null" should cause "a buffer of sufficient size initialized to 0 is passed."

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161020/a8eb1de9/attachment-0001.html>


More information about the webkit-unassigned mailing list