mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Goto and Select being able to select bytes in zero-size files
This commit is contained in:
@@ -51,6 +51,9 @@ namespace hex::plugin::builtin::ui {
|
||||
if (start < this->m_provider->getBaseAddress())
|
||||
return;
|
||||
|
||||
if (this->m_provider->getActualSize() == 0)
|
||||
return;
|
||||
|
||||
const size_t maxAddress = this->m_provider->getActualSize() + this->m_provider->getBaseAddress() - 1;
|
||||
|
||||
constexpr static auto alignDown = [](u128 value, u128 alignment) {
|
||||
|
||||
Reference in New Issue
Block a user