Repository navigation
fix: Revert "fix: Limit exports (#12100)" - #12288
Merged
Merged
Conversation
This reverts commit 13935d9.
|
✅ No security or compliance issues detected. Reviewed 2 of 4 changed files (2 skipped) up to 6f28644. Security Overview
Detected Code Changes
|
Contributor
There was a problem hiding this comment.
🟡 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
alin-at-dfinity
approved these changes
Nov 25, 2026
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.

This reverts commit 13935d9.