# wasm-edit **Repository Path**: mirrors_xtuc/wasm-edit ## Basic Information - **Project Name**: wasm-edit - **Description**: Edit and instrument already compiled Wasm binaries - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-02 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wasm-edit > Edit and instrument already compiled Wasm binaries ## Coredump generation Moved to https://github.com/xtuc/wasm-coredump. ## Install ``` cargo install wasm-edit ``` ## Edit the main memory Change the initial memory amount (in pages): ``` wasm-edit edit-memory --initial-memory=1000 < input.wasm > output.wasm ``` ## Trace calls to `memory.grow` Trace calls to the `memory.grow` instruction: ``` wasm-edit instrument-memory < input.wasm > output.wasm ``` Requires Wasi, but doesn't require any change on the host. Tested with Rust and theoretically working with C/C++ (clang). ## Running into stack overflow Some Wasm binaries have very recursive flow of control, increase the maximum stack size: ``` $ ulimit -s 160000 ``` [wasmgdb]: https://github.com/xtuc/wasmgdb