mesa/src/panfrost
Boris Brezillon bdd1335e4f pan/cs: Fix buffer overflow in cs_block_end()
If cs_alloc_ins() fails, it returns a dummy instruction slot, which can
only hold one instruction. Make sure we skip the memcpy() if the CS
is invalid to avoid a buffer overflow.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205>
2024-09-20 07:25:02 +00:00
..
ci ci/panfrost: update rock-5b from rc5 to rc7 2024-09-20 12:17:37 +09:00
compiler pan/va: Optimize SSBO lowering on Valhall 2024-09-18 13:45:57 +00:00
drm-shim build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
ds build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
include panfrost: implement a driver-specific max-miplevel 2024-04-18 15:04:57 +00:00
lib pan/cs: Fix buffer overflow in cs_block_end() 2024-09-20 07:25:02 +00:00
midgard panfrost/midgard: Lower *hadd instructions 2024-09-19 22:09:14 +00:00
perf build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
shared format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
tools build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
util panfrost: drop leftover definition after pan_nir_lower_64bit_intrin removal 2024-09-05 11:02:29 +00:00
vulkan panvk: error-check get_fb_descs calls 2024-09-18 18:53:25 +00:00
.clang-format pan/genxml: Add pan_pack_nodefaults() 2024-09-12 20:04:58 +00:00
meson.build build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00