glibc 2.40 changed the compatibility seconds word to unsigned without
changing the record layout. Publish unsigned profiles for both byte
orders so modern files can be decoded alongside historical signed logs.
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Accept the exact four-byte padding emitted by older mkimage releases
alongside the eight-byte padding used for flat_dt today.
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Derive the trailing padding length while validating external ranges.
Attribute linked ranges to their owning image. Only accept a fully read
zero-filled tail of the expected length as mkimage padding.
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
FIT inventory reported complete coverage whenever the devicetree and
image ranges were valid, even when bytes followed the last of them.
OpenWrt sysupgrade images carry metadata and an fwtool signature there,
and recovery images pad to 64 KiB; neither was exposed or mentioned.
The FIT structure now reports its extent, the first byte after the
devicetree and every external image range. Bytes past it leave coverage
unknown with a limitation naming their size and offset. Up to 7 zero
bytes after external image data stay accounted for, since mkimage -E
pads the last image to its 4- or 8-byte alignment.
Closes#16230
The ASAR reader declared complete coverage after listing the header's
members, even when bytes after the header belonged to no packed member:
bytes after the last member, gaps between members, or the declared range
of a member that cannot be read. Coverage is now unknown in those cases,
with a limitation giving the unaccounted bytes, their range count and the
first offset. Unpacked members need no packed bytes.
The gap measurement the wxapkg reader used moves to a shared
unaccountedBytes helper that both readers call.
Closes#16588