You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include
Philippe Mathieu-Daudé b82e7a2a1d hw/sd/sdbus: Provide buffer size to sdbus_do_command()
We provide to sdbus_do_command() a pointer to a buffer to be
filled with a varying number of bytes. By not providing the
buffer size, the callee can not check the buffer is big enough.
Pass the buffer size as argument to follow good practices.

sdbus_do_command() doesn't return any error, only the size filled
in the buffer. Convert the returned type to unsigned and remove
the few unreachable lines in callers.

This allow to check for possible overflow in sd_do_command().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250804133406.17456-4-philmd@linaro.org>
6 days ago
..
accel accel/system: Introduce @x-accel-stats QMP command 4 weeks ago
authz Prefer 'on' | 'off' over 'yes' | 'no' for bool options 5 years ago
block blockjob: mark block_job_remove_all_bdrv() as GRAPH_UNLOCKED 4 weeks ago
chardev chardev/char-hub: implement backend chardev aggregator 6 months ago
crypto crypto: implement workaround for GNUTLS thread safety problems 3 weeks ago
disas disas: Fix build against Capstone v6 (again) 9 months ago
exec qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
fpu fpu: Move m68k_denormal fmt flag into floatx80_behaviour 6 months ago
gdbstub gdbstub/helpers: Replace TARGET_BIG_ENDIAN -> target_big_endian() 4 weeks ago
hw hw/sd/sdbus: Provide buffer size to sdbus_do_command() 6 days ago
io io: add support for activating TLS thread safety workaround 3 weeks ago
libdecnumber include/libdecnumber: replace FSF postal address with licenses URL 2 months ago
migration migration: Rename save_live_complete_precopy_thread to save_complete_precopy_thread 1 month ago
monitor monitor: Remove obsolete stubs 1 year ago
net virtio,pci,pc: features, fixes, tests 4 weeks ago
qapi util/error: make func optional 2 months ago
qemu host-utils: Drop workaround for buggy Apple Clang __builtin_subcll() 3 weeks ago
qobject qapi: Move include/qapi/qmp/ to include/qobject/ 6 months ago
qom qom: reverse order of instance_post_init calls 3 months ago
scsi hw/ufs: Support for UFS logical unit 2 years ago
semihosting semihosting/uaccess: Remove uses of target_ulong type 1 month ago
standard-headers update Linux headers to v6.16-rc3 2 months ago
system Accelerators patches 4 weeks ago
tcg accel/tcg: Propagate AccelState to dump_accel_info() 4 weeks ago
ui ui/gtk: Add scale option 4 weeks ago
user qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
elf.h util: spelling fixes 2 years ago
glib-compat.h include/glib-compat.h: Poison g_list_sort and g_slist_sort 3 months ago
qemu-io.h
qemu-main.h ui & main loop: Redesign of system-specific main thread event handling 7 months ago