Skip to content

fix: Revert "fix: Limit exports (#12100)" - #12288

Merged
schneiderstefan merged 2 commits into
masterfrom
stschnei/revert-limit-exports
Nov 25, 2026
Merged

schneiderstefan merged 2 commits into
masterfrom
stschnei/revert-limit-exports

Conversation

@schneiderstefan

Copy link
Copy Markdown
Contributor

This reverts commit 13935d9.

@schneiderstefan schneiderstefan changed the title Revert "fix: Limit exports (#12100)" fix: Revert "fix: Limit exports (#12100)" Nov 25, 2026
@github-actions github-actions Bot added the fix label Nov 25, 2026
@schneiderstefan
schneiderstefan marked this pull request as ready for review November 25, 2026 13:44
@schneiderstefan
schneiderstefan requested a review from a team as a code owner November 25, 2026 13:44
Copilot AI balanced review requested due to automatic review settings November 25, 2026 13:44
@zeropath-ai

zeropath-ai Bot commented Nov 25, 2026

Copy link
Copy Markdown

✅ No security or compliance issues detected. Reviewed 2 of 4 changed files (2 skipped) up to 6f28644.

Security Overview
Detected Code Changes
Change Type Relevant files
Refactor ► rs/config/src/embedders.rs
    Update IC interface spec links and remove max_number_exports constant usage in config structure
Bug Fix ► rs/embedders/src/wasm_utils/validation.rs
    Remove handling of max_number_exports in export validation and adjust function parameter usage for validate_wasm_binary
Bug Fix ► rs/embedders/tests/validation.rs
    Remove test related to too many total exports and adjust related tests
Bug Fix ► rs/types/wasm_types/src/errors.rs
    Remove TooManyTotalExports variant and its Display/ErrorHelp handling

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Removing the total-export limit permits unbounded aliases of a mutable global, causing substantial per-call restoration and collection work outside Wasm instruction metering.

1 open issue
What changed in this PR

Reverts #12100’s total-export limit in the Wasm validation pipeline while preserving the existing limits on IC method exports.

Changes:

  • Removes the total-export check and its configuration.
  • Deletes the associated validation error and regression test.
  • Restores earlier interface-specification URLs in comments.
File Description
rs/​types/​wasm_types/​src/​errors.rs Removes TooManyTotalExports and its error guidance.
rs/​embedders/​tests/​validation.rs Removes the regression test for multiple exports of one global.
rs/​embedders/​src/​wasm_utils/​validation.rs Removes total-export counting and enforcement; restores a documentation URL.
rs/​config/​src/​embedders.rs Removes the export-limit constant, field, and default; restores comment URLs.

Review effort: Balanced

@schneiderstefan
schneiderstefan added this pull request to the merge queue Nov 25, 2026
Merged via the queue into master with commit 723fd80 Nov 25, 2026
46 of 47 checks passed
@schneiderstefan
schneiderstefan deleted the stschnei/revert-limit-exports branch November 25, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants