mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
check_package now reads the first 4 bytes of runtime.module and rejects files that do not begin with the Wasm magic number (0x00 0x61 0x73 0x6D). An unreadable or too-short file is treated as invalid. is_wasm_module(path): opens the file, reads 4 bytes, compares to MAGIC. Test added: check_package_bad_wasm_magic - writes NOT_WASM to app.wasm, asserts check fails with a message containing bad magic bytes. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||