mirror of
https://github.com/morluto/rea.git
synced 2026-11-30 02:17:09 +00:00
* feat(firmware): inspect uClinux bFLT flat executables offline The reader matches the bFLT magic on any filename, records the 64-byte big-endian header, and extracts text.bin (header included), data.bin, and relocations.bin while listing relocations as stored words. gzip and gzdata bodies inflate under artifact_limits.expanded_bytes; revision 2 is always stored, and its relocation words stay unchecked because their layout depends on a CPU the header never names. A missing magic or a header shorter than 64 bytes is the only refusal, other inconsistencies are limitations beside the remaining facts, files above 128 MiB are rejected, and the follow-up probe opens the text image as a raw binary with a caller-chosen architecture and entry. * Address review feedback * Address review feedback * fix(firmware): cap bFLT in-memory gzip inflation working memory --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>