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

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

View File

@ -207,7 +207,7 @@ namespace hex::plugin::builtin {
if (context.buffer.empty()) return nullptr; 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(); return context.buffer.data();
}; };