projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919898e
)
mesa: Fix array out-of-bounds access by _mesa_TexGeni.
author
Vinson Lee
<vlee@vmware.com>
Sun, 29 Nov 2009 04:47:23 +0000
(23:47 -0500)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 29 Nov 2009 04:47:23 +0000
(23:47 -0500)
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
src/mesa/main/texgen.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texgen.c
b/src/mesa/main/texgen.c
index 733e129fcfe12c7918c4ba14559e63f078db603f..087f66bbf35eb2f79dc3b8558c5abcd59090eb76 100644
(file)
--- 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 );
}