diff --git a/source/lang/evaluator.cpp b/source/lang/evaluator.cpp index eabb2cdb4..22427d18c 100644 --- a/source/lang/evaluator.cpp +++ b/source/lang/evaluator.cpp @@ -621,7 +621,7 @@ namespace hex::lang { entries.push_back(entry); - if (this->m_currOffset >= this->m_provider->getActualSize()) + if (this->m_currOffset > this->m_provider->getActualSize()) throwEvaluateError("array exceeds size of file"); }