]> git.proxmox.com Git - fwupd.git/commit
Fix SMBIOS struct parsing when there are three NULs in a row
authorRichard Hughes <richard@hughsie.com>
Thu, 9 Feb 2023 20:50:57 +0000 (20:50 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 23 Feb 2023 19:04:11 +0000 (13:04 -0600)
commite5cb6dc653e2bd4a10e2a9ac59f9d2437d866756
tree8285d1855f7b06b49ecd0da307f905f6723f7969
parentc17935acf74921a920ed02ba904dd57f35e236d4
Fix SMBIOS struct parsing when there are three NULs in a row

We need to be careful detecting the end of a string section when the struct
ends with NUL NUL NUL.

Fixes https://github.com/fwupd/fwupd/issues/5509
libfwupdplugin/fu-smbios.c
libfwupdplugin/fu-string.c
libfwupdplugin/fu-string.h
libfwupdplugin/fwupdplugin.map