[Webkit-unassigned] [Bug 50929] New: Must generate INVALID_VALUE errors for strings containing out-of-range characters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 13 09:55:07 PST 2010


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

           Summary: Must generate INVALID_VALUE errors for strings
                    containing out-of-range characters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kbr at google.com
                CC: oliver at apple.com, cmarrin at apple.com,
                    jamesr at chromium.org, zmo at google.com, enne at google.com


James Robinson points out in https://www.khronos.org/webgl/public-mailing-list/archives/1012/msg00133.html that there are several WebGL APIs accepting DOMString. Those mirroring OpenGL ES 2.0 APIs are bindAttribLocation(), getAttribLocation(), getUniformLocation(), and shaderSource(). The GLSL ES specification restricts the valid character range of the incoming shader strings, and therefore implicitly the names of attributes and uniforms.

The WebGL implementation needs to do a pre-pass over the incoming strings to these APIs to ensure that they do not contain out-of-range characters before passing them down to lower levels, and generate an INVALID_VALUE error if they do.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list