fix: Prevent Goto from making selections that start before the base address
This commit is contained in:
parent
af77819913
commit
17540b0120
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user