hw/smbios: Fix OEM strings table option validation
commitcd8a35b913c24248267c682cb9a348461c106139
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Mon, 29 Jan 2024 08:03:07 +0000 (29 17:03 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 13 Feb 2024 07:59:25 +0000 (13 10:59 +0300)
tree3e9071defe3806b52abc04a10a7656d6cc450c1d
parent9953bf34ee84f1c9b92fb4ab0aa698f9a76cfce6
hw/smbios: Fix OEM strings table option validation

qemu_smbios_type11_opts did not have the list terminator and that
resulted in out-of-bound memory access. It also needs to have an element
for the type option.

Cc: qemu-stable@nongnu.org
Fixes: 2d6dcbf93fb0 ("smbios: support setting OEM strings table")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/smbios/smbios.c