Skip to content

latest wasmer + fixes to learn perf #2462

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

faddat
Copy link
Contributor

@faddat faddat commented Apr 27, 2025

  • Update wasmer to 6.0
  • Fix tests
  • [autofix.ci] apply automated fixes
  • feat: Implement module size limit and overflow protection
  • finish updatge to wasmver v6

chipshort and others added 13 commits March 25, 2025 17:01
- Added a check for Wasm module size limit in `check_wasm` function to prevent oversized modules.
- Introduced a default module size limit of 3MiB in `WasmLimits`.
- Implemented overflow protection in `read_region_cost` and `validate_region` functions.
- Added unit tests to ensure module size limits and overflow checks are enforced correctly.
Copy link
Contributor

@hashedone hashedone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noone here would read through 7k lines changes, I'd ask you to split this in part. One thing I see immediately is that upgrade to Wasmer 6 is impossible legal-wise due to license changes. I didn't even look at any changes, so no other comments from me at this point, but it's not mergable for sure.

@webmaster128
Copy link
Member

webmaster128 commented Apr 28, 2025

See https://wasmer.io/posts/singlepass-relicensing for an elaboration of the Wasmer 6 upgrade issue. We will upgrade to Wasmer 5.0.6 in a few days which includes the patches we need.

@faddat
Copy link
Contributor Author

faddat commented Apr 29, 2025

Thank you @webmaster128

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.

4 participants