Commit Graph
1088 Commits
Author SHA1 Message Date
Vincent Koc 5fbe7ca210 test(apple): share single-object Nib archive fixtures (#16685) 2026-12-04 18:15:35 +08:00
Vincent Koc 6bd33dcc7f refactor(android): consolidate boot OS metadata decoding (#16682) 2026-12-04 18:03:25 +08:00
Vincent Koc 2b0e7f764e test(artifacts): share classification expectations (#16681) 2026-12-04 17:42:36 +08:00
N0zoM1z0andgensokyo-dev 68a7ab70cf fix(fit): account for legacy external devicetree alignment
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>
2026-12-04 17:32:48 +08:00
N0zoM1z0andgensokyo-dev 46e92e2b64 fix(fit): require exact external image padding
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>
2026-12-04 17:32:48 +08:00
Anurag Singh c75b676637 fix(fit): report bytes after the image data as unknown coverage
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
2026-12-04 17:32:48 +08:00
Anurag Singh 3741beeafc fix(asar): report bytes outside every packed member as unknown coverage
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
2026-12-04 17:06:37 +08:00
Vincent Koc 2ac3716899 refactor(artifacts): reuse canonical occurrence type (#16644) 2026-12-04 15:55:26 +08:00
hhangandhhang 0a71a25e4d fix(tar): recognize gzip archives with long comments (#16188)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-12-04 04:28:45 +00:00
clyde a143031b8f fix(ubi): report unknown coverage for conflicting volume tables (#16233) 2026-12-04 04:24:23 +00:00
ShuaixinHuangandShuaixinHuang 6dee08cdd1 fix(ogg): require OpusTags before classifying audio (#15972)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-12-04 04:21:33 +00:00
morluto a37994b3e8 feat(artifacts): inspect MetaTrader EX4 and EX5 program headers and resources (#16501)
* feat(artifacts): inspect MetaTrader 5 EX5 program headers and resources

Recognize compiled MQL5 programs by their EX5 magic and inventory them
through inspect_artifact and extract_artifact. Report the program type,
compiler build, copyright/link/version property slots, nonzero header
fields of unknown meaning, and the resource table. List the opaque body
and resource payloads as stored byte ranges; nothing is decrypted,
decompressed or decompiled.

Refs #16495

* feat(artifacts): read MetaTrader 4 EX4 programs with the EX5 layout

EX4 (magic EX-) shares the EX5 header, property slots and resource
table, so both containers become one mql-program format with a
container field. The version slot is 64 bytes and the opaque body
starts at 0x2E8 in both containers; the earlier 0x3A8 header length
counted 192 opaque bytes as part of the version slot. EX4 type code 3
is a library; build is reported under a neutral name because its EX4
meaning is not established.

* fix(artifacts): bound repeated MQL resource ranges and let tar outrank printable magics

Resource records may share one payload range, and each occurrence is
hashed and extractable, so the reader now charges every record against
artifact_limits.expanded_bytes, as the DTBO reader does.

A checksum-valid tar header now runs before the recognizers that match a
printable magic at offset 0. A tar whose first member was named EX-...,
GDPC... or UnityFS was claimed as an MQL program, Godot PCK or UnityFS.

Slot text keeps a leading U+FEFF, which is declared content rather than
an encoding mark.

* fix(artifacts): refuse an invalid tar header only after leading-magic formats

Only a checksum-valid tar header outranks the printable leading magics. A
Godot pack can hold ustar at 257 inside its own content without a valid
tar checksum; refusing that header first rejected the valid pack.

* fix(artifacts): compare MetaTrader resource declarations

A resource's name, kind, record index and unpacked size live in the
resource table, outside the stored payload that content comparison
hashes, so a renamed resource compared as unchanged. Compare them as
the resource's declaration, as tar, ar and UnityFS members do.

* fix(artifacts): keep unreadable MetaTrader resource names unknown in comparison
2026-12-03 19:16:36 -05:00
morluto f33f0e1c0c fix(artifacts): honor expanded_bytes for FIT images and share repeated-range admission (#16517)
FIT charged its images against the default expansion budget inside the
structure parser, ignoring a configured artifact_limits.expanded_bytes
and refusing without limit facts. The reader now charges every image,
including image-data links that repeat one range, through a helper the
DTBO reader also uses, and reports the standard expanded_bytes refusal.
The parser's untyped copy is removed.
2026-12-03 18:50:50 -05:00
Shuaixin Huang 50d3c11ba9 fix(artifacts): report unmapped bFLT loader image bytes (#15981) 2026-12-03 20:41:31 +00:00
RRFZ c80acb9c1d fix(artifacts): read paletted KTX mip chains as one block (#16000) 2026-12-03 20:30:23 +00:00
bde2994aa7 fix(artifacts/ar): recognize COFF EC symbol tables (#16467)
Classify /<ECSYMBOLS>/ as a symbol table in regular archives so
inspection continues to the following object members.

Carry forward the original fix from #15974 and cover the combination
of an EC symbol table and an LLVM-padded COFF long-name table.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Co-authored-by: Shuaixin Huang <3937061056@qq.com>
2026-12-03 20:27:35 +00:00
rodricksz4h5 f4e6c87163 fix(artifacts/ar): read COFF long names before llvm-lib's newline pad (#16274) 2026-12-03 19:51:38 +00:00
RRFZ 2a96f92293 fix(ogg): accept compatible OpusHead minor versions (#16009) 2026-12-03 19:50:31 +00:00
Vincent Koc 35230f2587 test(artifacts): share prefix recognition fixtures (#16453) 2026-12-03 19:41:42 +00:00
Vincent Koc 6dda69dc1d refactor(inventory): share scan result collections (#16437) 2026-12-03 18:45:08 +00:00
Vincent Koc 542c07ab98 refactor(plist): share projected scalar limitations (#16392) 2026-12-03 15:29:18 +00:00
Vincent Koc c41d023097 test(macos): share package resource fork fixtures (#16315) 2026-12-03 10:49:15 +00:00
Vincent Koc 795bb16dbc refactor(pyinstaller): share opaque PYZ result construction (#16313) 2026-12-03 10:38:46 +00:00
Vincent Koc 7f72b78d47 refactor(nib): share hierarchy collection lookup (#16247) 2026-12-03 06:14:44 +00:00
Vincent Koc b80a771449 refactor(media): reuse Ogg Opus page facts (#16242) 2026-12-03 06:01:02 +00:00
Vincent Koc 618ae7fef3 refactor(macos-pkg): share XAR entry metadata projection (#16238) 2026-12-03 05:48:26 +00:00
CyberSprout 6c627682ba feat(artifacts): inspect and extract MCUboot firmware images (#15414)
* feat(firmware): inspect and extract MCUboot images offline

* fix(firmware): align MCUboot digest tags, ParseFailureError locations, and compact summaries
2026-12-03 13:02:15 +08:00
Vincent Koc 49c4a91540 test(zip): share descriptor directory record setup (#16223) 2026-12-03 04:51:14 +00:00
Vincent Koc b6cf28ed79 test(glb): share malformed image document setup (#16221) 2026-12-03 04:37:16 +00:00
Vincent Koc 2b37694324 refactor(artifacts): share asset layout entry coverage (#16215) 2026-12-03 04:08:54 +00:00
Vincent Koc a76b065bd5 refactor(apple): share Interface Builder decode coverage assembly (#16198) 2026-12-03 02:49:00 +00:00
Vincent Koc d4c64e63fb refactor(pkg): share partial XAR inventory publication (#16194) 2026-12-03 02:32:51 +00:00
Vincent Koc db25a43c97 test(mega-drive): share refusal reader setup (#16144) 2026-12-02 23:52:41 +00:00
Vincent Koc c4ec9e4828 test(ar): share regular archive fixture construction (#16138) 2026-12-02 23:16:22 +00:00
Vincent Koc 32cbb5e5c0 test(systemd): share journal scan setup (#16125) 2026-12-02 22:25:39 +00:00
Vincent Koc cccee4500d refactor(android): share boot component placement (#16110) 2026-12-02 21:38:43 +00:00
Vincent Koc 4186af1a5e test(artifacts): reuse occurrence inventory evidence (#16108) 2026-12-02 21:33:06 +00:00
Vincent Koc da3c31b346 refactor(pyinstaller): share CArchive name decoding (#16090) 2026-12-02 20:02:52 +00:00
Vincent Koc f2506d0378 refactor(artifacts): share extractable role container capabilities (#16032) 2026-12-02 15:46:22 +00:00
Vincent Koc 31082cacc9 refactor(macos): share package archive metadata merging (#16014) 2026-12-02 14:53:58 +00:00
Vincent Koc 4e4b508509 refactor(bun): share graph suffix reads (#15975) 2026-12-02 13:29:49 +00:00
Vincent Koc 96beae708e refactor(media): simplify RIFF XMA2 framing state (#15961) 2026-12-02 13:16:29 +00:00
Vincent Koc 13feb8c1be refactor(unityfs): share compression codec selection (#15957) 2026-12-02 13:13:02 +00:00
Vincent Koc 2c550d3929 refactor(godot): share desktop PCK header facts (#15907) 2026-12-02 12:02:03 +00:00
Vincent Koc 8333d1c655 refactor(iso9660): reuse unpaired surrogate matcher (#15902) 2026-12-02 11:48:43 +00:00
Vincent Koc b9dd76c687 refactor(wxapkg): retain one produced record per package member (#15887) 2026-12-02 11:06:30 +00:00
Vincent Koc 2601a0f615 refactor(tar): share gzip carrier tail accounting (#15885) 2026-12-02 10:54:13 +00:00
Vincent Koc 0d4cddc698 refactor(fit): share property string decoding (#15876) 2026-12-02 10:30:18 +00:00
Vincent Koc 4875c24b49 refactor(switch): share executable root report projection (#15867) 2026-12-02 09:56:25 +00:00
Vincent Koc 2f19d0527a refactor(apple): share bundle reader cleanup ownership (#15865) 2026-12-02 09:46:28 +00:00