Title: [292579] releases/WebKitGTK/webkit-2.34/Source/WebCore
- Revision
- 292579
- Author
- [email protected]
- Date
- 2022-04-07 17:08:05 -0700 (Thu, 07 Apr 2022)
Log Message
Merge r287807 - [Hardening] Improve multi draw offset validation
https://bugs.webkit.org/show_bug.cgi?id=234966
<rdar://problem/86814830>
Reviewed by Darin Adler.
Incorporate draw count into validation of the offset.
* html/canvas/WebGLMultiDraw.cpp:
(WebCore::WebGLMultiDraw::validateOffset):
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.34/Source/WebCore/ChangeLog (292578 => 292579)
--- releases/WebKitGTK/webkit-2.34/Source/WebCore/ChangeLog 2022-04-08 00:08:00 UTC (rev 292578)
+++ releases/WebKitGTK/webkit-2.34/Source/WebCore/ChangeLog 2022-04-08 00:08:05 UTC (rev 292579)
@@ -1,3 +1,16 @@
+2022-01-07 Brent Fulgham <[email protected]>
+
+ [Hardening] Improve multi draw offset validation
+ https://bugs.webkit.org/show_bug.cgi?id=234966
+ <rdar://problem/86814830>
+
+ Reviewed by Darin Adler.
+
+ Incorporate draw count into validation of the offset.
+
+ * html/canvas/WebGLMultiDraw.cpp:
+ (WebCore::WebGLMultiDraw::validateOffset):
+
2022-01-31 Brent Fulgham <[email protected]>
Fix handling of access key events
Modified: releases/WebKitGTK/webkit-2.34/Source/WebCore/html/canvas/WebGLMultiDraw.cpp (292578 => 292579)
--- releases/WebKitGTK/webkit-2.34/Source/WebCore/html/canvas/WebGLMultiDraw.cpp 2022-04-08 00:08:00 UTC (rev 292578)
+++ releases/WebKitGTK/webkit-2.34/Source/WebCore/html/canvas/WebGLMultiDraw.cpp 2022-04-08 00:08:05 UTC (rev 292579)
@@ -135,7 +135,7 @@
return false;
}
- if (offset >= static_cast<GCGLuint>(size)) {
+ if (offset >= static_cast<GCGLuint>(size - drawcount)) {
m_context->synthesizeGLError(GraphicsContextGL::INVALID_OPERATION, functionName, outOfBoundsDescription);
return false;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes