projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f2449
)
llvmpipe: Fix buffer overflow unswizzling several formats.
author
José Fonseca
<jfonseca@vmware.com>
Sun, 25 Apr 2010 14:40:06 +0000
(15:40 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sun, 25 Apr 2010 14:54:32 +0000
(15:54 +0100)
Array formats without for channels were being advanced as four channels,
causing buffer overflows.
src/gallium/drivers/llvmpipe/lp_tile_soa.py
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_tile_soa.py
b/src/gallium/drivers/llvmpipe/lp_tile_soa.py
index b2f800afd8a4c509a0238b85ef64caada77c2d51..5ab63cbac67fdc190150292e42e9967f14f349e8 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_tile_soa.py
+++ b/
src/gallium/drivers/llvmpipe/lp_tile_soa.py
@@
-257,7
+257,7
@@
def emit_tile_pixel_unswizzle_code(format, src_channel):
value = 'TILE_PIXEL(src, x, y, %u)' % inv_swizzle[i]
value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False)
print ' *dst_pixel++ = %s;' % value
- el
s
e:
+ el
if dst_channel.siz
e:
print ' ++dst_pixel;'
else:
assert False