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>
Thu, 4 Jul 2024 18:08:09 +0000 (20:08 +0200)
commit44ec70489f377d1fa9f4e19aed95a7e39da7d93d
treec583781dbc0e279e21c612d23107a7867bf2446b
parent6a4fcf8cefceba151e11f85e784c8962b6fc383b
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
src/boot/efi/vmm.c