Skip to content

fix(plist): ignore inherited XML entity lookup properties - #4530

Merged
morluto merged 9 commits into
morluto:mainfrom
ShuaixinHuang:codex/fix-xml-entity-lookup
Oct 17, 2026
Merged

morluto merged 9 commits into
morluto:mainfrom
ShuaixinHuang:codex/fix-xml-entity-lookup

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Problem and outcome

The shared XML decoder substituted inherited object properties into unknown entities such as &constructor;. Restrict lookup to the predefined entity table's own entries. Unknown entities remain literal, while numeric and the five predefined entities retain their behavior.

This corrects the decoder contract; its current production consumer scans numeric literal metadata. No public CLI/MCP output difference is claimed. The net diff contains only propertyListKeys.ts and its tests. This branch normally synchronized with upstream 5b24399.

Validation

Current head: c900ab6188fab5d679c793f356adead52351a737.

  • Five focused files: 61/61 passed (40 decoder, 1 numeric-literal consumer, 9 native plist parser, 2 JEB CLI/MCP acceptance, 9 controlled Java-probe tests).
  • npm run check: 6/6 tasks plus architecture guards passed. git diff --check passed.
  • Original decoder regression on main 313a86a: 1 failed / 39 passed.

Executed with pinned Node 24.18.0/npm 11.16.0 on Windows x64. Java stand-ins do not establish real JVM behavior; no live Apple application or performance claim.

Current-head CI run 39011594487: CI required passed; all 34 listed checks completed successfully or were legitimately skipped. Linux source tests passed and JEB CLI/stdio-MCP acceptance passed 2/2. Greptile reported 5/5, and no unresolved review threads remain.

Human review approved this exact head after independent 49/49 decoder/native-plist tests and four source probe groups. The reviewer explicitly superseded the earlier readiness-only hold: the manually disabled workflow has no status, but is not an additional gate. The three human declarations remain filled.

Sequencing: #4047 remains open and replaces this helper/raw-source scanner with DOM-owned numeric facts. This standalone decoder correction is not cumulative after that refactor; reconcile the helper-specific test/import at integration rather than retaining an obsolete decoder.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@ShuaixinHuang

Copy link
Copy Markdown
Contributor Author

Hi @N0zoM1z0, thank you again for reviewing and merging #4354! When convenient, could you also give early feedback on these two draft PRs?

Both current revisions have passed CI required, and neither has unresolved review threads at this check. Their descriptions include the executed evidence and validation limits. The human author-readiness declarations remain pending, so the PRs are still drafts.

Thank you for your time!

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review October 17, 2026 05:29
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-17T05:29:55.317308Z a65ff1d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ShuaixinHuang

Copy link
Copy Markdown
Contributor Author

Hi @morluto @N0zoM1z0 @baron, when you have time, could you help review these two PRs?

Both are now ready for review, and the author-readiness declarations are completed. CI required has passed for both current revisions, with no unresolved review threads at this check. Their descriptions include the executed evidence and validation limits.

Marking them ready triggered fresh automated reviews, which are still running. Thank you again for your earlier reviews and for taking the time to look at these!

@greptile-apps

greptile-apps Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

decodeXmlText now reads only the entity table’s own entries.

  • Unknown XML entities stay literal unless the table defines them.

Reviews (2) · Last reviewed commit: "Merge commit '5b243993872c2bcc70cb00060f..." · Reviewed by Greptile

…x-xml-entity-lookup

# Conflicts:
#	tests/acceptance/providers/jebConfigurationIsolation.test.ts

@baron baron left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review at c900ab6188fab5d679c793f356adead52351a737: the own-property check correctly prevents inherited entity-table values from entering the existing numeric-metadata scanner. No additional correctness finding. Four dependency-free exact-source probe groups passed on pinned Node 24.18.0 (inherited/unknown names, predefined entities, numeric references and Unicode bounds). Follow-up with the coordinated byte-identical-lock dependency tree, pinned Node 24.18.0 and exact Vitest source selection: src/domain/propertyListKeys.test.ts + src/native/parsers/plist.test.ts, 49/49 passed. No build/typecheck/install was run in this review lane.

Overlap: #4047 removes both this helper and its raw-source scanner, replacing them with DOM-owned numeric facts. This is a valid standalone correction, not a cumulative requirement after that refactor; reconcile the helper test/import when sequencing the PRs rather than retaining an obsolete decoder solely for this test.

HOLD, not approval: open/non-draft and MERGEABLE/CLEAN; all 34 listed check runs are successful or legitimate skips, but the current head has no PR readiness commit status/check. The three human declarations are filled; that is separate from the missing readiness CI. Please run the repository readiness workflow before approval.

@baron baron mentioned this pull request Oct 17, 2026
4 tasks done

@baron baron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at c900ab6188fab5d679c793f356adead52351a737 after refreshing the open/non-draft head, MERGEABLE/CLEAN state, all active CI (17 successful checks and 17 legitimate skips), and the filled human-owner declarations. The absent status from the manually disabled readiness workflow is not an additional gate; that supersedes my earlier readiness-only hold.

This has independent value in the current tree: the existing numeric-metadata consumer still calls this decoder, whose predefined-entity lookup must not substitute inherited JavaScript properties. The own-entry guard is correct and preserves numeric/predefined decoding and unknown entity text. No public CLI/MCP output difference is claimed. #4047 may later remove the helper/scanner, but it is currently conflicting; its eventual cleanup does not invalidate this narrow current-tree correction. When integrating that refactor, remove the superseded helper-only test/import rather than restoring the scanner.

Reviewer validation: pinned Node 24.18.0, byte-identical-lock dependencies, isolated exact-head source tests — src/domain/propertyListKeys.test.ts and src/native/parsers/plist.test.ts, 49/49 passed — plus four dependency-free exact-source probe groups. No local build/typecheck/full suite, public CLI/MCP, real provider/client or performance verification was performed. No additional actionable source finding.

@ShuaixinHuang

ShuaixinHuang commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @baron, thank you for the detailed reviews, independent plist validation, and approvals of #4530 and #4531!

I refreshed your latest #4530 approval at c900ab61, which explicitly supersedes the earlier readiness-only hold. The description now reflects that approval and records the #4047 sequencing requirement to reconcile the helper-specific test/import when the DOM refactor lands.

Both current heads passed CI required. The Linux report also confirms all 6 #4531 MCP inventory cases passed, including the socket/pagination/skipped-coverage case that was unavailable on my Windows host.

Thank you again for your time!

@morluto
morluto merged commit abe4980 into morluto:main Oct 17, 2026
36 checks passed
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants