mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: Prevent Goto from making selections that start before the base address
This commit is contained in:
@@ -48,6 +48,9 @@ namespace hex::plugin::builtin::ui {
|
||||
if (start > this->m_provider->getBaseAddress() + this->m_provider->getActualSize())
|
||||
return;
|
||||
|
||||
if (start < this->m_provider->getBaseAddress())
|
||||
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