From c365604a7de74551068ccaf67c6cfbc308ece1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eva=20Herencs=C3=A1rov=C3=A1?= Date: Wed, 13 Nov 2024 18:03:10 +0100 Subject: [PATCH 1/2] Test largest valid initial size for memory32 in memory.wast --- test/core/memory.wast | 1 + 1 file changed, 1 insertion(+) diff --git a/test/core/memory.wast b/test/core/memory.wast index e01170a8..ea23359b 100644 --- a/test/core/memory.wast +++ b/test/core/memory.wast @@ -5,6 +5,7 @@ (module (memory 0 0)) (module (memory 0 1)) (module (memory 1 256)) +(module (memory 65536)) (module (memory 0 65536)) (module (memory (data)) (func (export "memsize") (result i32) (memory.size))) From 9dca79bdba3f197d9cb911dbd5aaf4ae35a8c331 Mon Sep 17 00:00:00 2001 From: Eva Herencsarova Date: Thu, 14 Nov 2024 18:39:55 +0100 Subject: [PATCH 2/2] Only validate and don't instantiate large memory --- test/core/memory.wast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/memory.wast b/test/core/memory.wast index ea23359b..8ae51eca 100644 --- a/test/core/memory.wast +++ b/test/core/memory.wast @@ -5,7 +5,7 @@ (module (memory 0 0)) (module (memory 0 1)) (module (memory 1 256)) -(module (memory 65536)) +(module definition (memory 65536)) (module (memory 0 65536)) (module (memory (data)) (func (export "memsize") (result i32) (memory.size)))