Skip to content

vrend: copy_fallback: limit per slice transfer to slice size

Gert Wollny requested to merge (removed):gl-4.3 into gl-4.3

When calling glGetnTexImage, glGetnCompressedTexImage, or glCompressedTexSubImage*D and the data pointer is updated with the per-slice offset but as bufSize value the full length of the buffer was given, which can result in a crash of qemu when the buffer size was not evaluated correctly. Instead of passing the size of the whole buffer pass the size of the slice to make sure that glGetnTexImage doesn't write to unallocated memory. Closes: #1 (closed)

Signed-off-by: Gert Wollny gert.wollny@collabora.com

Edited by Gert Wollny

Merge request reports