projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f2d51b
)
mesa: Fix array out-of-bounds access by _mesa_PointParameteri.
author
Vinson Lee
<vlee@vmware.com>
Wed, 9 Dec 2009 21:15:05 +0000
(13:15 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 9 Dec 2009 21:15:05 +0000
(13:15 -0800)
_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the
params argument as an array.
src/mesa/main/points.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/points.c
b/src/mesa/main/points.c
index 9ec21c9b7679ff251563b852b7e016bf42f58123..dcaeccd90d4df4747320fae12024ee7f9065295d 100644
(file)
--- a/
src/mesa/main/points.c
+++ b/
src/mesa/main/points.c
@@
-69,8
+69,10
@@
_mesa_PointSize( GLfloat size )
void GLAPIENTRY
_mesa_PointParameteri( GLenum pname, GLint param )
{
- const GLfloat value = (GLfloat) param;
- _mesa_PointParameterfv(pname, &value);
+ GLfloat p[3];
+ p[0] = (GLfloat) param;
+ p[1] = p[2] = 0.0F;
+ _mesa_PointParameterfv(pname, p);
}