aboutsummaryrefslogtreecommitdiff
path: root/ui/cocoa.m
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2021-02-12 20:23:18 -0700
committerGerd Hoffmann <kraxel@redhat.com>2021-02-19 15:00:13 +0100
commit122e4ef6dea14a078a860ca253852e18ddebb8e2 (patch)
tree517ea930b3c6f6a9004cd1ec71cac56be86f7843 /ui/cocoa.m
parentc0ff29d1889040a61a7120731ac16e0c1da39149 (diff)
downloadqemu-122e4ef6dea14a078a860ca253852e18ddebb8e2.zip
qemu-122e4ef6dea14a078a860ca253852e18ddebb8e2.tar.gz
qemu-122e4ef6dea14a078a860ca253852e18ddebb8e2.tar.bz2
spice-app: avoid crash when core spice module doesn't loaded
When qemu is built with modules, but a given module doesn't load qemu should handle that gracefully. When ui-spice-core.so isn't able to be loaded and qemu is invoked with -display spice-app or -spice, qemu will dereference a null pointer. With this change we check the pointer before dereferencing and error out in a normal way. Signed-off-by: Bruce Rogers <brogers@suse.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210213032318.346093-1-brogers@suse.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/cocoa.m')
0 files changed, 0 insertions, 0 deletions