-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello,
I compiled SQLite from https://github.com/wapm-packages/sqlite to WASM with optimization level O2.
I wanted to obfuscate it with the aliasCollatz technique.
On a side note, to use the tool I had to eliminate the DataCount section (id 12) by converting the .wasm to .wat using wasm2wat and then back again to .wasm with wat2wasm.
After applying the obfuscation, when running the result WASM module with Wasmtime I get:
Error: failed to run main module `sqlite_O2_2_aliasCollatz.wasm`
Caused by:
0: failed to invoke command default
1: error while executing at wasm backtrace:
0: 0xe90fb - <unknown>!<wasm function 1145>
1: 0x1d53b - <unknown>!<wasm function 182>
2: 0x18de - <unknown>!<wasm function 21>
2: wasm trap: indirect call type mismatch
It seems the tool produces an indirect call type mismatch in the output module.
Do you know how to fix this? I can also send my .wasm modules for your convenience.
Thanks in advance :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels