projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c9d7e
)
llvmpipe: Fix pointer dereference after free.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 18 Jun 2010 16:37:37 +0000
(17:37 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 18 Jun 2010 16:37:37 +0000
(17:37 +0100)
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 48c7754e41acbc0070a39bf5d893f96c4af331f3..c3ecd77830b4d1d73c8011843fb568d2d74e223c 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/
src/gallium/drivers/llvmpipe/lp_state_fs.c
@@
-1079,8
+1079,9
@@
llvmpipe_delete_fs_state(struct pipe_context *pipe, void *fs)
li = first_elem(&shader->variants);
while(!at_end(&shader->variants, li)) {
+ struct lp_fs_variant_list_item *next = next_elem(li);
remove_shader_variant(llvmpipe, li->base);
- li = next
_elem(li)
;
+ li = next;
}
assert(shader->variants_cached == 0);