Mesa (mesa_7_6_branch): mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
Vinson Lee
vlee at kemper.freedesktop.org
Wed Dec 9 21:02:39 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: 6f2d51b81ff907af9727e90153a46e79e246fc66
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f2d51b81ff907af9727e90153a46e79e246fc66
Author: Vinson Lee <vlee at vmware.com>
Date: Wed Dec 9 13:00:22 2009 -0800
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.
---
src/mesa/main/points.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index b330544..9ec21c9 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, ¶m);
+ GLfloat p[3];
+ p[0] = param;
+ p[1] = p[2] = 0.0F;
+ _mesa_PointParameterfv(pname, p);
}
More information about the mesa-commit
mailing list