Fix parsing uSWID uncompressed metadata

The magic offset is not required as we're working on a pre-offset GBytes.
This commit is contained in:
Richard Hughes 2022-09-06 20:40:50 +01:00
parent 9e3bd17c70
commit c43b981d63

View File

@ -198,7 +198,7 @@ fu_uswid_firmware_parse(FuFirmware *firmware,
}
/* payload */
for (gsize offset_tmp = offset; offset_tmp < payloadsz;) {
for (gsize offset_tmp = 0; offset_tmp < payloadsz;) {
g_autoptr(FuFirmware) firmware_coswid = fu_coswid_firmware_new();
g_autoptr(GBytes) fw2 = NULL;