Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#108): WASM write creates slice with null pointer #111

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

justinwilaby
Copy link
Owner

fixes #108

This PR reconciles the differences between JS and Rust's memory addressing by advancing the offset by 1 byte on the JS side. 0 is a valid memory address in WASM but is considered a null pointer in Rust.

@justinwilaby justinwilaby merged commit fbb869b into master Feb 24, 2025
2 checks passed
@justinwilaby justinwilaby deleted the fix/#108 branch February 24, 2025 17:49
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 write creates slice with null pointer
1 participant