Explorar el Código

Fix mini-loader issue (#1383)

Xu Jun hace 3 años
padre
commit
872cc51881
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/iwasm/interpreter/wasm_mini_loader.c

+ 1 - 1
core/iwasm/interpreter/wasm_mini_loader.c

@@ -6497,7 +6497,7 @@ re_scan:
                         break;
                         break;
                     case WASM_OP_MEMORY_COPY:
                     case WASM_OP_MEMORY_COPY:
                         /* both src and dst memory index should be 0 */
                         /* both src and dst memory index should be 0 */
-                        bh_assert(*(int16 *)p != 0x0000);
+                        bh_assert(*(int16 *)p == 0x0000);
                         p += 2;
                         p += 2;
 
 
                         bh_assert(module->import_memory_count
                         bh_assert(module->import_memory_count