mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
Fixed off-by-one error for array bound check
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user