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

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

_mesa_LightModeli calls _mesa_LightModeliv, which uses the
params argument as an array.
parent d33bf38d
No related branches found
No related tags found
Loading
......@@ -537,7 +537,10 @@ _mesa_LightModeliv( GLenum pname, const GLint *params )
void GLAPIENTRY
_mesa_LightModeli( GLenum pname, GLint param )
{
_mesa_LightModeliv( pname, &param );
GLint iparam[4];
iparam[0] = param;
iparam[1] = iparam[2] = iparam[3] = 0;
_mesa_LightModeliv( pname, iparam );
}
......
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