aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorWeifeng Liu <weifeng.liu.z@gmail.com>2025-07-14 22:17:54 +0800
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-09-30 11:06:36 +0400
commite01b61963faf810ceee1f15c97ec3a2210112c47 (patch)
tree9fe6d049a4d9a069de75663cddaa713b08a6db18 /scripts/qapi/parser.py
parent9b16edec6e9a483469c789475b2065d26b52db35 (diff)
downloadqemu-e01b61963faf810ceee1f15c97ec3a2210112c47.zip
qemu-e01b61963faf810ceee1f15c97ec3a2210112c47.tar.gz
qemu-e01b61963faf810ceee1f15c97ec3a2210112c47.tar.bz2
gtk: Skip drawing if console surface is NULL
In gtk draw/render callbacks, add an early NULL check for the console surface and skip drawing if it's NULL. Otherwise, attempting to fetch its width and height crash. This change fixes Coverity CID 1610328. In practice, this case wouldn't happen at all because we always install a placeholder surface to the console when there is nothing to display. Resolves: Coverity CID 1610328 Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20250714141758.10062-1-weifeng.liu.z@gmail.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions