mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 11:10:25 +01:00
llvmpipe: Fix buffer overflow unswizzling several formats.
Array formats without for channels were being advanced as four channels, causing buffer overflows.
This commit is contained in:
parent
89f244931f
commit
5745bcb2db
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
else:
|
||||
elif dst_channel.size:
|
||||
print ' ++dst_pixel;'
|
||||
else:
|
||||
assert False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue