diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-01-20 14:32:54 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-01-22 08:55:08 +0100 |
commit | 344496fae4bee9243be7f9719a60b01189c12f00 (patch) | |
tree | 71ecce901251c00b6ca76d3e79ff5e6fe1971eff /scripts | |
parent | 19f789bdfd58eba2ed8fe604bbabf8df0fcc0771 (diff) | |
download | seabios-344496fae4bee9243be7f9719a60b01189c12f00.tar.gz |
smbios: catch zero-length strings
qemu may pass us zero-length strings for smbios fields, when starting
qemu this way ...
qemu -smbios type=1,version=,serial=test
... for example.
Today we don't specifically handle them and simply append them to the
string list. Therefore we get two string-terminating zeros in a row.
Result is that we by accident create a end-of-entry marker in the middle
of the entry.
Fix this by handling zero-length strings like non-present strings.
Cc: armbru@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions