1
0
mirror of synced 2025-01-18 00:56:49 +01:00

fix: Prevent Goto from making selections that start before the base address

This commit is contained in:
WerWolv 2023-11-11 23:43:48 +01:00
parent af77819913
commit 17540b0120

View File

@ -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) {