From 16f72aae58b6c856d405d6d608efd436549ea678 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 6 Sep 2022 13:56:50 -0700 Subject: [Wasm GC] Fix GlobalTypeOptimization fuzz bug on replacing unreachable struct.set (#5021) We replaced an unreachable struct.set with something reachable, which can break validation in corner cases. --- src/wasm/wasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/wasm.cpp') diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index a445d74bf..af40896ce 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -182,7 +182,7 @@ void Block::finalize() { return; } // The default type is what is at the end. Next we need to see if breaks and/ - // or unreachabitily change that. + // or unreachability change that. type = list.back()->type; if (!name.is()) { // Nothing branches here, so this is easy. -- cgit v1.2.3