diff options
author | Vinson Lee <[email protected]> | 2009-12-10 12:11:09 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-12-10 12:11:09 -0800 |
commit | dcb4a37fc89924192d923ed6906d2922371b8cb1 (patch) | |
tree | 110a4f000418382af634080227fb938af3a36dae /src/mesa | |
parent | b82757880545f8bce471ba8f13c16998888cd4b5 (diff) |
mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texparam.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 1cec4b82fea..0f83d226f28 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -700,8 +700,10 @@ _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint *params) case GL_TEXTURE_COMPARE_FAIL_VALUE_ARB: { /* convert int param to float */ - GLfloat fparam = (GLfloat) params[0]; - need_update = set_tex_parameterf(ctx, texObj, pname, &fparam); + GLfloat fparams[4]; + fparams[0] = (GLfloat) params[0]; + fparams[1] = fparams[2] = fparams[3] = 0.0F; + need_update = set_tex_parameterf(ctx, texObj, pname, fparams); } break; default: |