Index: test/unittests/wasm/loop-assignment-analysis-unittest.cc |
diff --git a/test/unittests/wasm/loop-assignment-analysis-unittest.cc b/test/unittests/wasm/loop-assignment-analysis-unittest.cc |
index 919ce8e2345617e5930806814e2966b93b2149da..9c89d5df586fb13ea1936f4ad44affcb8b3e3b94 100644 |
--- a/test/unittests/wasm/loop-assignment-analysis-unittest.cc |
+++ b/test/unittests/wasm/loop-assignment-analysis-unittest.cc |
@@ -187,6 +187,14 @@ TEST_F(WasmLoopAssignmentAnalyzerTest, Malformed) { |
CHECK_NULL(assigned); |
} |
+TEST_F(WasmLoopAssignmentAnalyzerTest, regress_642867) { |
+ static const byte code[] = { |
+ WASM_LOOP(WASM_ZERO, kExprSetLocal, 0xfa, 0xff, 0xff, 0xff, |
+ 0x0f)}; // local index LEB128 0xfffffffa |
+ // Just make sure that the analysis does not crash. |
+ Analyze(code, code + arraysize(code)); |
+} |
+ |
} // namespace wasm |
} // namespace internal |
} // namespace v8 |