mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-29 04:31:33 +00:00
trivial: Fix a buffer over-read when parsing invalid SMBIOS data
This commit is contained in:
parent
338cab9e73
commit
cba9020eae
@ -156,7 +156,7 @@ fu_smbios_setup_from_data (FuSmbios *self, const guint8 *buf, gsize sz, GError *
|
||||
/* invalid */
|
||||
if (str->len == 0x00)
|
||||
break;
|
||||
if (str->len >= sz) {
|
||||
if (i + str->len >= sz) {
|
||||
g_set_error_literal (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_INVALID_FILE,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user