summaryrefslogtreecommitdiff
path: root/test/decompile
diff options
context:
space:
mode:
authorHyxogen <8938732+Hyxogen@users.noreply.github.com>2023-11-20 20:30:46 +0100
committerGitHub <noreply@github.com>2023-11-20 11:30:46 -0800
commit6367a02e9fddefb62dcb1a1a61af3d067c93ae9a (patch)
tree4dcdbf5b215aed3e4dbe035660d98e529f92bf88 /test/decompile
parent8ad63cc00617690f9552b794cef220d26cc46f80 (diff)
downloadwabt-6367a02e9fddefb62dcb1a1a61af3d067c93ae9a.tar.gz
wabt-6367a02e9fddefb62dcb1a1a61af3d067c93ae9a.tar.bz2
wabt-6367a02e9fddefb62dcb1a1a61af3d067c93ae9a.zip
decompiler.cc: fix vector oob when if has empty then (#2334)
Diffstat (limited to 'test/decompile')
-rw-r--r--test/decompile/basic.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/decompile/basic.txt b/test/decompile/basic.txt
index 2b63e4a5..b8cdaead 100644
--- a/test/decompile/basic.txt
+++ b/test/decompile/basic.txt
@@ -105,6 +105,10 @@
i32.const 0 ;; fi
call_indirect
i32.const 0
+ if
+ else
+ end
+ i32.const 0
)
(func $g (param) (result) (local i32)
;; This is rare, but requires special handling: uses of local outside scope
@@ -183,6 +187,7 @@ export function f(a:int, b:int):int {
nop;
is_null(null);
call_indirect(0);
+ if (0) {}
return 0;
}