aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-09 13:00:22 -0800
committerVinson Lee <[email protected]>2009-12-09 13:00:22 -0800
commit6f2d51b81ff907af9727e90153a46e79e246fc66 (patch)
treed825bd60356fd759d4039beb61903c73e11663e7
parent637970aefdcdd1ee50e3759de384b82e6109a45c (diff)
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the params argument as an array.
-rw-r--r--src/mesa/main/points.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index b3305448904..9ec21c9b767 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -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);
}