vmm: make sure we can handle smbios objects without variable part
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Jul 2024 12:34:35 +0000 (14:34 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jul 2024 18:00:04 +0000 (20:00 +0200)
commit9a2f16e4edc490a289e3b22ab9f30e3e5bc73850
tree89bae81b2faf46676da84923ce71111eb8822c70
parentc32f71aa1420b05711fa0593ddcffbeb76f272ab
vmm: make sure we can handle smbios objects without variable part

An smbios object with no variable part is a special case, it's just
suffixed with two NUL btes. handle that properly.

This is inspired by a similar fix from https://github.com/systemd/systemd/pull/29726

(cherry picked from commit 44ec70489f377d1fa9f4e19aed95a7e39da7d93d)
src/boot/efi/vmm.c