Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: c66cda75a86abab2961a635b504b297e85c8a3c9 https://github.com/WebKit/WebKit/commit/c66cda75a86abab2961a635b504b297e85c8a3c9 Author: Geoffrey Garen <gga...@apple.com> Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths: M Source/WebCore/platform/graphics/GCGLSpan.h M Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp Log Message: ----------- Reduce unsafe buffer usage in WebCore::GraphicsContextGLANGLE https://bugs.webkit.org/show_bug.cgi?id=286036 rdar://143004066 Reviewed by Chris Dumez. * Source/WebCore/platform/graphics/GCGLSpan.h: (GCGLSpanTuple::span const): Added a span accessor so clients can be bounds safe. * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp: (asPointers): Helper function to avoid duplicate code. Uses span now. (WebCore::GraphicsContextGLANGLE::multiDrawElementsANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawElementsInstancedANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawElementsInstancedBaseVertexBaseInstanceANGLE): Use our new bounds-safe helper function. Canonical link: https://commits.webkit.org/288987@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes