commit 3cdd882b4a85c258442a3763baf9843020ec9662 parent 43f8898e2116558ee92cbd5ba23591aa7958f366 Author: William Casarin <jb55@jb55.com> Date: Sun, 22 Nov 2020 14:59:32 -0800 exports: parse index Diffstat:
M | src/wasm.c | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/wasm.c b/src/wasm.c @@ -391,6 +391,11 @@ static int parse_export(struct wasm_parser *p, struct wexport *export) return 0; } + if (!leb128_read(&p->cur, &export->index)) { + note_error(p, "export index"); + return 0; + } + return 1; }