Firefox · DOM
CVE-2024-11691
OOB in DOM
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Files Changed
dom/canvas/WebGLContextVertices.cpp
Patch
diff --git a/dom/canvas/WebGLContextVertices.cpp b/dom/canvas/WebGLContextVertices.cpp
index cd2fbc51b2d..2d27dcfcb4e 100644
--- a/dom/canvas/WebGLContextVertices.cpp
+++ b/dom/canvas/WebGLContextVertices.cpp
@@ -90,10 +90,9 @@ void WebGLContext::EnableVertexAttribArray(GLuint index) {
if (!ValidateAttribIndex(*this, index)) return;
- gl->fEnableVertexAttribArray(index);
-
MOZ_ASSERT(mBoundVertexArray);
mBoundVertexArray->SetAttribIsArray(index, true);
+ mBoundVertexArray->DoVertexAttrib(index);
}
void WebGLContext::DisableVertexAttribArray(GLuint index) {
@@ -102,12 +101,9 @@ void WebGLContext::DisableVertexAttribArray(GLuint index) {
if (!ValidateAttribIndex(*this, index)) return;
- if (index || !gl->IsCompatibilityProfile()) {
- gl->fDisableVertexAttribArray(index);
- }
-
MOZ_ASSERT(mBoundVertexArray);
mBoundVertexArray->SetAttribIsArray(index, false);
+ mBoundVertexArray->DoVertexAttrib(index);
}
Maybe<double> WebGLContext::GetVertexAttrib(GLuint index, GLenum pname) {
Loading diff…
References
On This Page