Skip to content
Snippets Groups Projects
Commit 6f2d51b8 authored by Vinson Lee's avatar Vinson Lee
Browse files

mesa: Fix array out-of-bounds access by _mesa_PointParameterf.

_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.
parent 637970ae
No related merge requests found
......@@ -90,7 +90,10 @@ _mesa_PointParameteriv( GLenum pname, const GLint *params )
void GLAPIENTRY
_mesa_PointParameterf( GLenum pname, GLfloat param)
{
_mesa_PointParameterfv(pname, &param);
GLfloat p[3];
p[0] = param;
p[1] = p[2] = 0.0F;
_mesa_PointParameterfv(pname, p);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment