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

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

_mesa_Fogf calls _mesa_Fogfv, which uses the params argument
as an array.
parent 3f7c2ac2
No related branches found
No related tags found
Loading
......@@ -34,7 +34,10 @@
void GLAPIENTRY
_mesa_Fogf(GLenum pname, GLfloat param)
{
_mesa_Fogfv(pname, &param);
GLfloat fparam[4];
fparam[0] = param;
fparam[1] = fparam[2] = fparam[3] = 0.0F;
_mesa_Fogfv(pname, fparam);
}
......
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