diff options
| author | Bruce Rogers | 2021-02-13 04:23:18 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2021-02-19 15:00:13 +0100 |
| commit | 122e4ef6dea14a078a860ca253852e18ddebb8e2 (patch) | |
| tree | 517ea930b3c6f6a9004cd1ec71cac56be86f7843 /include | |
| parent | ui/cocoa: Do not copy members of pixman image (diff) | |
| download | qemu-122e4ef6dea14a078a860ca253852e18ddebb8e2.tar.gz qemu-122e4ef6dea14a078a860ca253852e18ddebb8e2.tar.xz qemu-122e4ef6dea14a078a860ca253852e18ddebb8e2.zip | |
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 'include')
0 files changed, 0 insertions, 0 deletions
