Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 1fa5adc1417a27e7b4a71b2a5da1c0781f43c434 https://github.com/WebKit/WebKit/commit/1fa5adc1417a27e7b4a71b2a5da1c0781f43c434 Author: Dan Glastonbury <d...@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@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes