]> git.ipfire.org Git - thirdparty/u-boot.git/commit
smbios: Fix table when no string is present
authorMatthias Brugger <mbrugger@suse.com>
Tue, 6 Apr 2021 09:04:35 +0000 (11:04 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Feb 2024 18:56:54 +0000 (19:56 +0100)
commite31efe50b5cce46a2ee68c96db445e0a3d481aa8
treeb472c810f5ad5d6e97520dea29a21fefff73db7f
parentc11f176ab16a3488c0b057fed41d76ef96091564
smbios: Fix table when no string is present

When no string is present in a table, next_ptr points to the same
location as eos. When calculating the string table length, we would only
reserve one \0. By spec a SMBIOS table has to end with two \0\0 when no
strings a present.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/smbios.c