[webkit-changes] [WebKit/WebKit] 1fa5ad: Cherry-pick 252432.896 at safari-7614-branch (91df735...
Dan Glastonbury
noreply at github.com
Tue Jan 24 20:44:10 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1fa5adc1417a27e7b4a71b2a5da1c0781f43c434
https://github.com/WebKit/WebKit/commit/1fa5adc1417a27e7b4a71b2a5da1c0781f43c434
Author: Dan Glastonbury <djg at apple.com>
Date: 2023-01-24 (Tue, 24 Jan 2023)
Changed paths:
M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
Log Message:
-----------
Cherry-pick 252432.896 at safari-7614-branch (91df735c5c49). rdar://104611996
[WebGL] Harden texImageImpl byte length calculation
rdar://98583503
Reviewed by Kimmo Kinnunen and Ryan Haddad.
The calculation of the image size has been validated earlier but out of an
abundance of caution, use checked arithmetic on size_t to perform calculation,
returning a GL error on overflow.
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::texImageImpl):
Calculate imagePixelsByteLength with checked arithmetic to catch integer
overflow.
Canonical link: https://commits.webkit.org/252432.896@safari-7614-branch
Canonical link: https://commits.webkit.org/259338@main
More information about the webkit-changes
mailing list