yara: Fix address offset after the first page of data

This commit is contained in:
WerWolv 2021-12-15 21:13:45 +01:00
parent 318e42be26
commit 7d0d8d5649
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ namespace hex::plugin::builtin {
if (context.buffer.empty()) return nullptr;
provider->read(context.currBlock.base + provider->getBaseAddress() + provider->getCurrentPageAddress(), context.buffer.data(), context.buffer.size());
provider->read(context.currBlock.base + provider->getBaseAddress(), context.buffer.data(), context.buffer.size());
return context.buffer.data();
};