+
Skip to content

Conversation

Shyamjith-K
Copy link

@Shyamjith-K Shyamjith-K commented Oct 9, 2025

Summary

This pull request addresses missing table-related initializations in the InitDataSegments function of m3_env.c.
Previously, the code referenced non-existent fields (numTables, table0MaxSize) in the M3Module structure, which caused compilation errors.

Changes Made

Added explicit initialization and validation for table elements without relying on deprecated or missing fields.

Ensured that table element initialization aligns with the current M3Table structure design.

Improved error checking to prevent table index or size overflows during data segment initialization.

Reason for Change

The existing code referenced outdated structure members removed in newer versions of the wasm3 core.
This caused build failures and undefined behavior during table setup.
This fix ensures compatibility with the latest source and restores proper table initialization

Screenshot 2025-10-15 230537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载