diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-09-03 23:38:18 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-09-30 11:08:33 +0400 |
commit | 62fd247a24290dba2b2de4ee8575624a7993973c (patch) | |
tree | 70ae5e1c8560f5f1ad818971d1397bc0b28aee11 /scripts/lib/kdoc/kdoc_parser.py | |
parent | e7ecb533ee0dbfbe30c90abb213247f4943a9a12 (diff) | |
download | qemu-62fd247a24290dba2b2de4ee8575624a7993973c.zip qemu-62fd247a24290dba2b2de4ee8575624a7993973c.tar.gz qemu-62fd247a24290dba2b2de4ee8575624a7993973c.tar.bz2 |
ui/spice: fix crash when disabling GL scanout on
When spice_qxl_gl_scanout2() isn't available, the fallback code
incorrectly handles NULL arguments to disable the scanout, leading to:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 spice_server_gl_scanout (qxl=0x55a25ce57ae8, fd=0x0, width=0, height=0, offset=0x0, stride=0x0, num_planes=0, format=0, modifier=72057594037927935, y_0_top=0)
at ../ui/spice-display.c:983
983 if (num_planes <= 1) {
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2391334
Fixes: 98a050ca93afd8 ("ui/spice: support multi plane dmabuf scanout")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Message-Id: <20250903193818.2460914-1-marcandre.lureau@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions