mesa/src
Eduardo Lima Mitev 6e8f12619f main/getteximage: Use the height argument to calculate memcpy copy size
In get_tex_memcpy, when copying texture data directly from source
to destination (when row strides match for both src and dst), the
copy size is currently calculated using the full texture height
instead of the sub-region height parameter that was passed.

This can cause a read past the end of the mapped buffer when y-offset
is greater than zero, leading to a segfault.

Fixes CTS test (from crash to pass):
* GL45-CTS/get_texture_sub_image/functional_test

v2: (Jason) Use the passed 'height' instead of copying til the
end of the buffer (tex-height - yoffset).

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-11-23 09:22:32 +01:00
..
amd radv: move pipeline barrier image transitions after src flushing 2016-11-23 10:16:34 +10:00
compiler nir/spirv: implement ordered / unordered floating point comparisons properly 2016-11-23 08:07:44 +01:00
egl egl/x11: store xcb_screen_t *screen instead of int screen 2016-11-22 15:13:41 +00:00
gallium swr: [rasterizer core] fix cast for stencil clear value 2016-11-22 20:06:17 -06:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-22 15:56:44 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx dri: make use of loader_get_extensions_name(..) helper 2016-11-15 18:15:16 +00:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: fix segfault in anv_BindImageMemory 2016-11-23 16:11:03 +10:00
loader loader: automake: whitespace cleanup 2016-11-21 14:46:40 +00:00
mapi mesa: add missing CONTEXT_ROBUST_ACCESS enum 2016-10-27 07:06:41 +03:00
mesa main/getteximage: Use the height argument to calculate memcpy copy size 2016-11-23 09:22:32 +01:00
util util: import CRC32 implementation from gallium 2016-11-22 18:05:51 +01:00
vulkan/wsi wsi: fix VK_INCOMPLETE for vkGetSwapchainImagesKHR 2016-11-16 09:17:34 +10:00
Makefile.am amd: flatten amd/common makefile structure 2016-11-15 20:04:37 +00:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00