diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-s-parser.h | 2 | ||||
-rw-r--r-- | src/wasm-validator.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index e0db65224..9d33504ac 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -1115,7 +1115,7 @@ private: } else { // offset, break to nth outside label uint64_t offset = std::stoll(s.c_str(), nullptr, 0); - if (offset >= labelStack.size()) throw ParseException("total memory must be <= 4GB", s.line, s.col); + if (offset >= labelStack.size()) throw ParseException("invalid label", s.line, s.col); return labelStack[labelStack.size() - 1 - offset]; } } diff --git a/src/wasm-validator.h b/src/wasm-validator.h index 5e7b60498..2a11bf64f 100644 --- a/src/wasm-validator.h +++ b/src/wasm-validator.h @@ -248,7 +248,7 @@ public: } void visitMemory(Memory *curr) { shouldBeFalse(curr->initial > curr->max, "memory", "memory max >= initial"); - shouldBeTrue(curr->max <= Memory::kMaxSize, "memory", "total memory must be <= 4GB"); + shouldBeTrue(curr->max <= Memory::kMaxSize, "memory", "max memory must be <= 4GB"); size_t top = 0; for (auto& segment : curr->segments) { shouldBeFalse(segment.offset < top, "memory", "segment offset is small enough"); |