ejrgilbert / whamm

Debugging WebAssembly? Put some Whamm! on it.
https://ejrgilbert.github.io/whamm/
16 stars 3 forks source link

Can `wasmparser` be a better long-term library for bytecode rewriting? #42

Closed ejrgilbert closed 2 months ago

ejrgilbert commented 3 months ago

walrus is basically an abandoned project, wasmparser could be a better approach to migrate to using, especially as new versions of Wasm come out with new features that may have events we want to instrument with this injection technique.

ejrgilbert commented 3 months ago

Used by Dfinity here

Also used by walrus to actually read in Wasm modules.

ahuoguo commented 3 months ago
  1. wasm bytecode location identifier?
  2. lib-agnostic IDs
  3. Can wasmparser create a wasm module from scratch?
ahuoguo commented 3 months ago

Seems like we also want to use wasm-encoder

Interop between wasmparser and wasm-encoder

thesuhas commented 2 months ago

Orca is able to inject code! Although, there is still a lot of functionality to be added, it's able to inject code now!