Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Jun 11, 2024

The module splitting code incorrectly assumed that there would be at least one active element segment and failed to initialize the table slot manager with a function table if that was not the case. Fix the bug by setting the table even when there are no active segments and add a test.

Fixes #6572 and #6637.

The module splitting code incorrectly assumed that there would be at least one
active element segment and failed to initialize the table slot manager with a
function table if that was not the case. Fix the bug by setting the table even
when there are no active segments and add a test.

Fixes #6572.
@tlively tlively requested a review from kripken June 11, 2024 20:45
@tlively tlively linked an issue Jun 11, 2024 that may be closed by this pull request
@tlively tlively enabled auto-merge (squash) June 11, 2024 20:52
@tlively tlively merged commit 425ecc6 into main Jun 11, 2024
@tlively tlively deleted the split-no-active branch June 11, 2024 21:14
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wasm-split fails on small module with existing unused table wasm-split error without an element segment

3 participants