Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
u-boot.25195
0033-smbios-Fix-table-whit-no-string-is-.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0033-smbios-Fix-table-whit-no-string-is-.patch of Package u-boot.25195
From 0fc6e0e2b62044bf3b507db414b3b4af9987a209 Mon Sep 17 00:00:00 2001 From: Matthias Brugger <mbrugger@suse.com> Date: Wed, 17 Mar 2021 12:43:03 +0100 Subject: [PATCH] smbios: Fix table whit no string is present When no string is present a table has to end with two \0 bytes. Take this into account. This is a downstream fix. Signed-off-by: Matthias Brugger <mbrugger@suse.com> --- lib/smbios.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/smbios.c b/lib/smbios.c index 485a812c77..c68d19e12b 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -105,6 +105,10 @@ static int smbios_string_table_len(char *start) len += i; } + /* A table without a string has to end with \0\0 */ + if (len == 0) + return 2; + return len + 1; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor