qemu/hw/smbios
Daan De Meyer a7a05f5f6a smbios: Fix buffer overrun when using path= option
We have to make sure the array of bytes read from the path= file
is null-terminated, otherwise we run into a buffer overrun later on.

Fixes: bb99f4772f ("hw/smbios: support loading OEM strings values from a file")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2879

Signed-off-by: Daan De Meyer <daan.j.demeyer@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Valentin David <valentin.david@canonical.com>
Message-ID: <20250323213622.2581013-1-daan.j.demeyer@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-04-08 20:45:13 +02:00
..
Kconfig smbios: build legacy mode code only for 'pc' machine 2024-03-18 08:42:45 -04:00
meson.build smbios: build legacy mode code only for 'pc' machine 2024-03-18 08:42:45 -04:00
smbios-stub.c hw/smbios: Dumb down smbios_entry_add() stub 2023-02-23 14:10:17 +01:00
smbios.c smbios: Fix buffer overrun when using path= option 2025-04-08 20:45:13 +02:00
smbios_build.h hw/smbios: add core_count2 to smbios table type 4 2022-11-07 14:08:17 -05:00
smbios_legacy.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
smbios_legacy_stub.c hw/smbios: add stub for smbios_get_table_legacy() 2024-03-26 14:32:54 +01:00
smbios_type_38-stub.c hw/smbios: Remove "smbios_ipmi.h" 2018-12-19 16:48:16 -05:00
smbios_type_38.c smbios:ipmi: Ignore IPMI devices with no fwinfo function 2019-09-20 14:08:10 -05:00