projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d6a52
)
svga: add array index assertion in svga_validate_sampler_view()
author
Brian Paul
<brianp@vmware.com>
Mon, 24 Jun 2013 20:48:57 +0000
(14:48 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 25 Jun 2013 23:54:24 +0000
(17:54 -0600)
src/gallium/drivers/svga/svga_sampler_view.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_sampler_view.c
b/src/gallium/drivers/svga/svga_sampler_view.c
index 1950784a15a3fb112f4f7021005d6819b7a4d78e..2c846b29a44a745393b47c0d2f0da6bd57676e13 100644
(file)
--- a/
src/gallium/drivers/svga/svga_sampler_view.c
+++ b/
src/gallium/drivers/svga/svga_sampler_view.c
@@
-191,6
+191,7
@@
svga_validate_sampler_view(struct svga_context *svga, struct svga_sampler_view *
for (i = v->min_lod; i <= v->max_lod; i++) {
for (k = 0; k < numFaces; k++) {
+ assert(i < Elements(tex->view_age));
if (v->age < tex->view_age[i])
svga_texture_copy_handle(svga,
tex->handle, 0, 0, 0, i, k,