summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-binary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 978e4757e..f73ec7c44 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -1149,7 +1149,7 @@ public:
pos += nameSize;
sectionSize = getU32LEB();
before = pos;
- assert(pos + sectionSize < input.size());
+ assert(pos + sectionSize <= input.size());
return true;
};
if (match(BinaryConsts::Section::Start)) readStart();