We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
alloc
At the moment, the alloc function is actually undefined behavior: https://github.com/tomaka/smoldot/blob/ed61968acb17347fb039787b4ab5be6ab39cc9fa/wasm-node/rust/src/bindings.rs#L370
To me, the whole approach should maybe be reconsidered, because if you then call for example add_chain with the wrong size, you also have a UB.
add_chain
The text was updated successfully, but these errors were encountered:
For what it's worth, it seems that wasm-bindgen stores strings in a JS array, then the Rust uses JS functions to obtain the content of the string.
wasm-bindgen
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
At the moment, the
alloc
function is actually undefined behavior: https://github.com/tomaka/smoldot/blob/ed61968acb17347fb039787b4ab5be6ab39cc9fa/wasm-node/rust/src/bindings.rs#L370To me, the whole approach should maybe be reconsidered, because if you then call for example
add_chain
with the wrong size, you also have a UB.The text was updated successfully, but these errors were encountered: