Repository navigation
fix(analysis): iterate admitted inventories without call spreads - #10304
Merged
Merged
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. |
This was referenced Nov 13, 2026
[Bug] Wide GraphQL Source spreads overflow argument lists and skip admitted application files
#10332
Closed
N0zoM1z0
pushed a commit
that referenced
this pull request
Nov 14, 2026
`target.push(...items)` passes every item as a call argument and overflows the stack once a target-sized array grows past the engine's argument limit. This class was fixed one site at a time in #10304, #10343, #10362 and #8632. Add one shared appendAll helper in src/domain and use it at the remaining sites whose arrays grow with the input: XML member counting, app-task row suggestions, native call routes and unresolved calls, call-path caveats, environment-manifest merges, reference-source import entries, dyld trace edges and JS symbolic flow values. The web bundle merge from the previous commit now uses the shared helper too. Bounded spreads (fixed literals, page-sized reads) are left as they are. Refs #10445 Refs #10342 Co-Authored-By: gensokyo-dev <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #8545. Admitted native symbol inventories, exported JavaScript binding lists, and wide directory trees currently become function arguments through
push(...items). At 130,000 items they throwRangeError; the managed-verification CLI reports genericexecution_failureinstead of verifying its one P/Invoke.Replace the four confirmed producer appends with ordered iteration. Existing ordering, Evidence identities, cancellation, and selected resource limits remain intact. This is a focused follow-up to closed, unmerged #8568; it does not carry that PR's repository-wide helper and lint migration.
Change and scope
Evidence and regression coverage
All four new regressions fail on base
54906fdb1fand pass with the fix:Boundary coverage includes representation expansion, selected capacity limits, public success/error delivery, and exact caller cancellation cause. This does not establish real large-binary provider behavior. Full Electron CLI analysis and large-input MCP were not run. Local host: macOS arm64, Node 24.22.1/npm 11.16.0. The reference-reader case explicitly skips Windows, where its no-follow admission is unsupported; Windows execution was not available. One existing Linux filename-bytes test skipped on macOS.
Validation performed
npm run test:focused -- tests/boundary/cli/managedNativeVerificationLargeInventory.test.ts tests/boundary/javascript/wideExportBindings.test.ts tests/boundary/filesystem/wideDirectoryTraversal.test.ts— 4 passed; final run 35.39 seconds.npm run check— passed.npm run verify:test-discovery— all 3,499 test files discovered exactly once.git diff --check— passed.No breaking changes, release metadata, or package changes.
Author readiness
Human owner: @kaoru0822-kitauji. This author is exempt from the declaration under CONTRIBUTING.md; no human review is attested here.