Fix app manager parse applet name issue (#280)

This commit is contained in:
wenyongh
2020-06-11 14:19:55 +08:00
committed by GitHub
parent 7a287fd1a9
commit 10980a1dd7
4 changed files with 5 additions and 4 deletions

View File

@ -2060,7 +2060,8 @@ load_table_segment_section(const uint8 *buf, const uint8 *buf_end, WASMModule *m
}
for (j = 0; j < function_count; j++) {
read_leb_uint32(p, p_end, function_index);
if (function_index >= module->function_count + module->function_count) {
if (function_index >= module->import_function_count
+ module->function_count) {
set_error_buf(error_buf, error_buf_size,
"Load table segment section failed: "
"unknown function");