mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 08:47:39 +00:00
Fix libdfu CRC check for big endian architectures
This is the first fix needed for #43, there are others yet.
This commit is contained in:
parent
a71c331923
commit
54c09e9c43
@ -1016,7 +1016,7 @@ dfu_firmware_parse_data (DfuFirmware *firmware, GBytes *bytes,
|
||||
/* verify the checksum */
|
||||
priv->crc = GUINT32_FROM_LE (ftr->crc);
|
||||
if ((flags & DFU_FIRMWARE_PARSE_FLAG_NO_CRC_TEST) == 0) {
|
||||
crc_new = dfu_firmware_generate_crc32 (data, len - 4);
|
||||
crc_new = GUINT32_FROM_LE (dfu_firmware_generate_crc32 (data, len - 4));
|
||||
if (priv->crc != crc_new) {
|
||||
g_set_error (error,
|
||||
DFU_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user