Skip to content

uimage: carve payload even when data CRC mismatches#959

Open
CapnRon wants to merge 1 commit into
ReFirmLabs:masterfrom
CapnRon:uimage-crc-fix
Open

uimage: carve payload even when data CRC mismatches#959
CapnRon wants to merge 1 commit into
ReFirmLabs:masterfrom
CapnRon:uimage-crc-fix

Conversation

@CapnRon

@CapnRon CapnRon commented Jun 21, 2026

Copy link
Copy Markdown

Previously the uImage extractor only carved the payload to disk when the data CRC matched the header field. Some uImages have a valid header but a mismatched data CRC (e.g. when the payload uses a different compression than the header claims).

This change:

  • Warns on CRC mismatch (stderr) but still carves the data
  • Always reports the full header+data size so the region is marked as consumed

Previously the uImage extractor only carved the payload to disk when the
data CRC matched. Some uImages have a valid header but a mismatched data
CRC (e.g. when the payload uses a different compression than the header
claims). This change warns on CRC mismatch but still carves the data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant