aboutsummaryrefslogtreecommitdiff
path: root/VERSION
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-08-18 16:10:55 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-09-04 14:57:44 +0400
commit1663ffb9157e3dc17d14741f6cd6c48bfffde9d0 (patch)
tree0d126cccd878b43aca7f0dd734ac48814f217d7b /VERSION
parent9db018ac56119ee8e0a87a1a340276e4c8d86392 (diff)
downloadqemu-1663ffb9157e3dc17d14741f6cd6c48bfffde9d0.zip
qemu-1663ffb9157e3dc17d14741f6cd6c48bfffde9d0.tar.gz
qemu-1663ffb9157e3dc17d14741f6cd6c48bfffde9d0.tar.bz2
ui/spice-display: Avoid dynamic stack allocation
Use an autofree heap allocation instead of a variable-length array on the stack in qemu_spice_create_update(). The codebase has very few VLAs, and if we can get rid of them all we can make the compiler error on new additions. This is a defensive measure against security bugs where an on-stack dynamic allocation isn't correctly size-checked (e.g. CVE-2021-3527). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230818151057.1541189-2-peter.maydell@linaro.org>
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions