[Webkit-unassigned] [Bug 238134] Validate readpixels format and type inside of WebCore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 22 10:33:25 PDT 2022


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

--- Comment #8 from Kenneth Russell <kbr at google.com> ---
Comment on attachment 455380
  --> https://bugs.webkit.org/attachment.cgi?id=455380
Patch

Just FYI: ANGLE does do this validation. The only validation that should be needed at the WebCore level is to ensure that the incoming typed array type is compatible with the format being requested in readPixels. See Chromium's associated validation:

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc;l=4568
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc;l=5608

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220322/c0e707a2/attachment-0001.htm>


More information about the webkit-unassigned mailing list