mirror of https://github.com/WerWolv/ImHex.git
Fixed off-by-one error for array bound check
This commit is contained in:
parent
b4ef19dac7
commit
e4c2049975
|
@ -621,7 +621,7 @@ namespace hex::lang {
|
||||||
|
|
||||||
entries.push_back(entry);
|
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");
|
throwEvaluateError("array exceeds size of file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue