vmir icon indicating copy to clipboard operation
vmir copied to clipboard

String length too long

Open xyproto opened this issue 7 years ago • 2 comments
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

xyproto avatar Aug 09 '18 09:08 xyproto

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 :-(

andoma avatar Aug 11 '18 16:08 andoma

This commit 8fc7027 doesn't really fix anything. Just pinpoints the actual error.

andoma avatar Aug 11 '18 16:08 andoma