Repository navigation
fix(native): share ELF, PE, and Mach-O framing across artifact readers - #12156
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
[High impact] The follow-up changes appear safe to merge; no new blocking issues were found. SummaryThe PR shares ELF, PE, and Mach-O structure readers while keeping each artifact reader’s recovery rules.
The earlier mapping-gap and zero-fill finding is addressed. No new actionable issues were found in the follow-up changes. This review checked source and regression coverage; it did not run tests or establish loader behavior. Reviews (4) · Last reviewed commit: "fix(elf): check load-map agreement acros..." · Reviewed by Greptile |
* fix(elf): check load-map agreement across section extents * fix(elf): preserve agreed section links across unreadable tables
Summary
Native and standalone readers now share ELF dynamic and note framing, PE header geometry, and Mach-O load command and section bounds. Carrier-specific readers preserve their own evidence and recovery policy.
The PE COFF-header consolidation and ELF section-extent checks are included through #12173 and #12175. ELF dependency names remain available when the linked string table can be admitted independently of conflicting symbol bytes.
Fixes #12125
Fixes #12130
Fixes #12136
Fixes #12142
Fixes #12143
Refs #7024 and #10371. Includes the stacked PE positional COFF header owner (#12173) and ELF section extent admission (#12175). The existing exception-directory draft remains separate.
Contract and boundary impact
Fixtures establish passive artifact-reader behavior. Windows loader behavior and real app execution remain unverified.
Evidence and regression coverage
Focused tests cover shared headers, read boundaries, compressed or zero-filled spans, PE resource order and distant headers, and carrier classification. The ELF review regression retained incorrect dependency names when an agreeing section covered a mapping gap and a zero-fill overlap. The shared mapper now keeps those two facts together and the dependency reader leaves the names unknown. Symbol and version table extents also have to agree across their full mapping. When symbol rows are unreadable, the agreed section header still establishes its independently validated string-table link and can retain library names.
Validation performed
d52734613c, including the public ELF CLI, MCP boundary, shared mapping parity, and standalone, PE, and managed readers.npm run check:fast,npm run docs:check, andgit diff --checkpassed.d52734613c, all 140 focused ELF dependency, binary mapping, desktop ELF reader, and PE admission tests passed on Node 24.22.1.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.