]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/smbios: Fix OEM strings table option validation
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Mon, 29 Jan 2024 08:03:07 +0000 (17:03 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 13 Feb 2024 18:06:00 +0000 (21:06 +0300)
commitd6e07d59169e16beba99fd139d1fb99ca197c555
tree0c36e700fb8a18a0569450c1faba8f19c24aeee0
parent6eeeb8733177db7bc23fb2e7271dea759b47e4f9
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>
(cherry picked from commit cd8a35b913c24248267c682cb9a348461c106139)
hw/smbios/smbios.c