projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3488830
)
mesa: Fix array out-of-bounds access by _mesa_Lightf.
author
Vinson Lee
<vlee@vmware.com>
Thu, 10 Dec 2009 01:11:30 +0000
(17:11 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 10 Dec 2009 01:11:30 +0000
(17:11 -0800)
src/mesa/main/light.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/light.c
b/src/mesa/main/light.c
index c1d47de330564c7f2af7b0a77ba5c3f30ee5cb08..d4f3bb9026513a34889e0ee4186782b483e383d4 100644
(file)
--- a/
src/mesa/main/light.c
+++ b/
src/mesa/main/light.c
@@
-206,7
+206,10
@@
_mesa_light(GLcontext *ctx, GLuint lnum, GLenum pname, const GLfloat *params)
void GLAPIENTRY
_mesa_Lightf( GLenum light, GLenum pname, GLfloat param )
{
- _mesa_Lightfv( light, pname, ¶m );
+ GLfloat fparam[4];
+ fparam[0] = param;
+ fparam[1] = fparam[2] = fparam[3] = 0.0F;
+ _mesa_Lightfv( light, pname, fparam );
}