1
0
mirror of synced 2024-11-28 09:30:51 +01:00

patterns: Properly apply base addresses to pointers

This commit is contained in:
WerWolv 2021-04-16 10:11:10 +02:00
parent 386ae7d8c3
commit c3e41710c7

View File

@ -843,7 +843,7 @@ namespace hex::lang {
size_t pointerSize = sizeType->getSize();
u128 pointedAtOffset = 0;
this->m_provider->read(pointerOffset, &pointedAtOffset, pointerSize);
this->m_provider->read(pointerOffset - this->m_provider->getBaseAddress(), &pointedAtOffset, pointerSize);
this->m_currOffset = hex::changeEndianess(pointedAtOffset, pointerSize, underlyingType->getEndian().value_or(this->m_defaultDataEndian));
delete sizeType;