WEFT_OS/crates
Marco Allegretti 5cff1f4412 feat(pack): validate Wasm module magic bytes in check
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.
2026-03-11 10:21:43 +01:00
..
weft-appd feat(appd): implement TerminateApp process signaling via abort channel 2026-03-11 09:37:09 +01:00
weft-build-meta Initialize Rust workspace and repository metadata 2026-03-10 18:47:06 +01:00
weft-compositor test(compositor): add protocol unit tests and stale identifier rejection 2026-03-11 08:12:11 +01:00
weft-pack feat(pack): validate Wasm module magic bytes in check 2026-03-11 10:21:43 +01:00
weft-runtime feat(runtime): add weft-runtime crate skeleton 2026-03-11 09:27:30 +01:00
weft-servo-shell feat(pack): add install subcommand; clean up servo-shell stub comment 2026-03-11 09:45:31 +01:00