vmir
vmir copied to clipboard
String length too long
trafficstars
Steps to reproduce the issue:
- Visit this page: https://tbfleming.github.io/cib/
- Click "compile"
- Click "save*
Run the saved user.wasm file with vmir:
$ vmir user.wasm
Parser error: src/vmir_wasm_parser.c:167 : String length too long
Problem is the wasm_parse_section_import_decl() function which doesn't handle imported tables.
https://github.com/andoma/vmir/blob/master/src/vmir_wasm_parser.c#L275
Also it shouldn't just silently ignore kinds it can't import :-(
This commit 8fc7027 doesn't really fix anything. Just pinpoints the actual error.