diff options
author | Vinson Lee <[email protected]> | 2009-11-28 23:47:23 -0500 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-28 23:47:23 -0500 |
commit | d55fb7c835b56951f05a058083e7eda264ba192e (patch) | |
tree | 435ef551a49441a07ffed00691bb6eb8e041a9ea /src/mesa | |
parent | 919898e92fa23ff71a59d86a46ff0886a6f34e4d (diff) |
mesa: Fix array out-of-bounds access by _mesa_TexGeni.
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texgen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/texgen.c b/src/mesa/main/texgen.c index 733e129fcfe..087f66bbf35 100644 --- a/src/mesa/main/texgen.c +++ b/src/mesa/main/texgen.c @@ -218,7 +218,10 @@ _mesa_TexGenf( GLenum coord, GLenum pname, GLfloat param ) void GLAPIENTRY _mesa_TexGeni( GLenum coord, GLenum pname, GLint param ) { - _mesa_TexGeniv( coord, pname, ¶m ); + GLint p[4]; + p[0] = param; + p[1] = p[2] = p[3] = 0; + _mesa_TexGeniv( coord, pname, p ); } |