Repository navigation
fix(dtbo): keep coverage unknown beyond the declared image - #15182
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge; no blocking issues were found. SummaryThe DTBO reader now reports complete coverage only when no internal gaps exist and the file size matches
Reviews (2) · Last reviewed commit: "chore: merge main for DTBO coverage vali..." · Reviewed by Greptile |
* commit '6053481d47c518af7de8e6a88a3579f1f95e7851': fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860)
|
thanks! canonical review is clean. the coverage change preserves readable overlays and reports trailing bytes accurately. the branch is updated with pinned main; waiting for CI on c3d06fe. |
|
thanks! merged after clean canonical review and full CI: 345 tests passed, one unchanged skip. trailing bytes now leave coverage unknown while the parsed overlays stay readable. |
* commit '5c3c1edd72453746266691deca2c7355a8df9b0d': (623 commits) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172) test(beam): reuse the CLI Evidence reader (morluto#15171) ... # Conflicts: # src/cli/cliCommandRegistrations.ts
* commit '11c8de1bc1c2ab922b190117e20ee48e90671db3': docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179)
* commit '11c8de1bc1c2ab922b190117e20ee48e90671db3': docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181)
* commit 'c91c504089557f048b72989c632f504954757d46': fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164)
* commit 'c91c504089557f048b72989c632f504954757d46': fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179)
* commit 'ba90eb225510c1342c7513754e62d1139d73f472': perf(evidence): bound link inspection frontier by records (morluto#15189) perf(evidence): retain snapshots across duplicate imports (morluto#15186) fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181)
* commit '31cec30f51fb59b28a1849a67d09ab79b1c40094': (803 commits) fix(android): declare Android mapping and JNI fixed allowances (morluto#15183) fix(artifacts): retain deep comparison source chains (morluto#15191) perf(evidence): bound link inspection frontier by records (morluto#15189) perf(evidence): retain snapshots across duplicate imports (morluto#15186) fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) ...
* commit '31cec30f51fb59b28a1849a67d09ab79b1c40094': (803 commits) fix(android): declare Android mapping and JNI fixed allowances (morluto#15183) fix(artifacts): retain deep comparison source chains (morluto#15191) perf(evidence): bound link inspection frontier by records (morluto#15189) perf(evidence): retain snapshots across duplicate imports (morluto#15186) fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) ...
Summary
Report DTBO file coverage as unknown when bytes follow the image's declared
total_size.Problem and expected behavior
Appending 16 bytes to a valid 136-byte, single-entry DTBO preserves a readable image. On main (
4ccc685dd),inspect-artifact --jsonreports those 16 bytes as undecoded but marks DTBO coveragecompleteand the parentcomplete-within-substeps. The coverage should reflect the unexamined bytes.Change and scope
The DTBO artifact reader now requires the declared image size to match the carrier size before returning complete coverage. It continues to list the parsed overlay and its metadata, and preserves the original diagnostic. This is a correctness fix for existing read-only parsing. The original DTBO feature was introduced in #14398. There is no underlying bug issue linked.
Contract and boundary impact
The DTBO reader owns the coverage determination. The existing CLI projection propagates the reader's result.
The schemas, commands, read targets, entry offsets and byte ranges are unchanged. No new provider, configuration, packaging or installation effect.
Read existing files or captured data.
Evidence and regression coverage
unknowncoverage, the preserved diagnostic and both entry paths, then opens the overlay and compares its bytes to the original. The existing valid-image test checks complete coverage.Validation performed
npm run test:focused -- src/artifacts/AndroidDtboArtifactReader.test.ts src/artifacts/AndroidDtboArtifactReader.boundaries.test.ts src/domain/firmware/androidDtboFormat.test.tspassed all 27 tests across 3 files.git diff --checkand the standard pre-commit checks passed.check:fastpassed typechecking, lint and architecture guards.npm run build:cachedpassed. The rebuiltinspect-artifact --jsonreportsunknownfor DTBO andpartialfor its parent on the suffix sample. The control still reportscompleteandcomplete-within-substeps.Compatibility, safety, and release
The only behavior change is the coverage value for a DTBO with undecoded trailing bytes. No migration or package metadata change is required.
Author readiness
Human owner: @ShuaixinHuang