From 95d00d699c9e05b8a04885d019a09d8d2eebd0b5 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 13 Oct 2016 19:41:59 +0200 Subject: Don't create a memory section for an imported memory; fixes #772 (#773) --- src/wasm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index 0f542294c..44326948b 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1502,7 +1502,11 @@ public: Address initial, max; // sizes are in pages std::vector segments; - Memory() : initial(0), max(kMaxSize) { + // See comment in Table. + bool exists; + bool imported; + + Memory() : initial(0), max(kMaxSize), exists(false), imported(false) { name = Name::fromInt(0); } }; -- cgit v1.2.3