Index: test/unittests/wasm/module-decoder-unittest.cc |
diff --git a/test/unittests/wasm/module-decoder-unittest.cc b/test/unittests/wasm/module-decoder-unittest.cc |
index 3c235adf1b469e1077eb52dd56e817e8f444e381..28ec527fbe39701a16d97c3f608a321b6bfeeeb5 100644 |
--- a/test/unittests/wasm/module-decoder-unittest.cc |
+++ b/test/unittests/wasm/module-decoder-unittest.cc |
@@ -1160,6 +1160,15 @@ TEST_F(WasmModuleVerifyTest, FunctionSignatures_one) { |
EXPECT_VERIFIES(data); |
} |
+TEST_F(WasmModuleVerifyTest, Regression_648070) { |
+ static const byte data[] = { |
+ SECTION(SIGNATURES, 1), 0, // -- |
+ SECTION(FUNCTION_SIGNATURES, 5), // -- |
+ U32V_5(3500228624) // function count = 3500228624 |
+ }; // -- |
+ EXPECT_FAILURE(data); |
+} |
+ |
TEST_F(WasmModuleVerifyTest, FunctionBodies_empty) { |
static const byte data[] = { |
EMPTY_SIGNATURES_SECTION, // -- |