Mesa (master): svga: Ensure vb_transfer in svga_swtnl_draw_vbo in initialized.
Vinson Lee
vlee at kemper.freedesktop.org
Wed Nov 7 07:33:23 UTC 2012
Module: Mesa
Branch: master
Commit: 57049219f5b5ed79b89c76aaa376e5e38ecf2fec
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57049219f5b5ed79b89c76aaa376e5e38ecf2fec
Author: Vinson Lee <vlee at freedesktop.org>
Date: Mon Nov 5 22:27:41 2012 -0800
svga: Ensure vb_transfer in svga_swtnl_draw_vbo in initialized.
Fixes a uninitialized pointer read defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/gallium/drivers/svga/svga_swtnl_draw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_swtnl_draw.c b/src/gallium/drivers/svga/svga_swtnl_draw.c
index 4aeeb67..bb57f6f 100644
--- a/src/gallium/drivers/svga/svga_swtnl_draw.c
+++ b/src/gallium/drivers/svga/svga_swtnl_draw.c
@@ -39,7 +39,7 @@ enum pipe_error
svga_swtnl_draw_vbo(struct svga_context *svga,
const struct pipe_draw_info *info)
{
- struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS];
+ struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS] = { 0 };
struct pipe_transfer *ib_transfer = NULL;
struct pipe_transfer *cb_transfer = NULL;
struct draw_context *draw = svga->swtnl.draw;
More information about the mesa-commit
mailing list