Sfoglia il codice sorgente

EH: Fix delegate parsing in wasm_loader_find_block_addr (#3106)

YAMAMOTO Takashi 2 anni fa
parent
commit
3111a86cb3
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      core/iwasm/interpreter/wasm_loader.c

+ 1 - 0
core/iwasm/interpreter/wasm_loader.c

@@ -4679,6 +4679,7 @@ wasm_loader_find_block_addr(WASMExecEnv *exec_env, BlockAddr *block_addr_cache,
                     return true;
                 }
                 else {
+                    skip_leb(p);
                     /* the DELEGATE opcode ends the tryblock, */
                     block_nested_depth--;
                     if (block_nested_depth