qemu-e2k/backends
Markus Armbruster 166a1cf404 backends/dbus-vmstate: Fix short read error handling
When dbus_vmstate_post_load() fails, it complains to stderr.  Except
on short read, where it checks with g_return_val_if_fail().  This
fails silently if G_DISABLE_CHECKS is undefined (it should be), or
else pads the short read with uninitialized bytes.

Replace g_return_val_if_fail() by a proper error check.

Fixes: 5010cec2bc
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210126124240.2081959-2-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2021-03-09 21:41:04 +01:00
..
tpm qdev: Rename qdev_get_prop_ptr() to object_field_prop_ptr() 2020-12-18 15:20:18 -05:00
confidential-guest-support.c confidential guest support: Introduce new confidential guest support class 2021-02-08 16:57:37 +11:00
cryptodev-builtin.c
cryptodev-vhost-user.c
cryptodev-vhost.c
cryptodev.c
dbus-vmstate.c backends/dbus-vmstate: Fix short read error handling 2021-03-09 21:41:04 +01:00
hostmem-file.c hostmem: Don't report pmem attribute if unsupported 2021-02-18 18:34:47 -05:00
hostmem-memfd.c memory: alloc RAM from file at offset 2021-02-09 20:53:56 +00:00
hostmem-ram.c
hostmem.c machine: add missing doc for memory-backend option 2021-02-08 14:43:54 +01:00
Kconfig
meson.build confidential guest support: Introduce new confidential guest support class 2021-02-08 16:57:37 +11:00
rng-builtin.c replay: rng-builtin support 2021-02-08 15:15:32 +01:00
rng-egd.c
rng-random.c
rng.c
trace-events
trace.h
vhost-user.c