projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74a7eb
)
ilo: avoid potential dangling pointer dereference
author
Chia-I Wu
<olvaffe@gmail.com>
Thu, 27 Jun 2013 06:52:54 +0000
(14:52 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Fri, 28 Jun 2013 02:11:49 +0000
(10:11 +0800)
Set pipe_draw_info to NULL after draw_vbo().
src/gallium/drivers/ilo/ilo_3d.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_3d.c
b/src/gallium/drivers/ilo/ilo_3d.c
index ef3aeced340b3e6ec9a8c75df9a01a954acb0393..65adcf26f7eb2cda7734a8b4298bcd3a106acaa3 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_3d.c
+++ b/
src/gallium/drivers/ilo/ilo_3d.c
@@
-729,6
+729,9
@@
ilo_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
ilo->dirty = 0x0;
hw3d->new_batch = false;
+ /* avoid dangling pointer reference */
+ ilo->draw = NULL;
+
update_prim_count(hw3d, prim_generated, prim_emitted);
if (ilo_debug & ILO_DEBUG_NOCACHE)