qemu/hw/smbios
Paolo Bonzini 57e3069641 smbios: sanitize type from external type before checking have_fields_bitmap
test_bit uses header->type as an offset; if the file incorrectly specifies a
type greater than 127, smbios_entry_add will read and write garbage.

To fix this, just pass the smbios data through, assuming the user knows what
to do.  Reported by Coverity as CID 1487255.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-09-18 09:17:40 +02:00
..
Kconfig
meson.build
smbios_build.h
smbios_type_38-stub.c
smbios_type_38.c
smbios-stub.c
smbios.c smbios: sanitize type from external type before checking have_fields_bitmap 2022-09-18 09:17:40 +02:00