mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Fix pe rva to offset (#1527)
This commit is contained in:
@@ -198,6 +198,7 @@ int64_t pe_rva_to_offset(PE* pe, uint64_t rva)
|
||||
}
|
||||
|
||||
if (rva >= yr_le32toh(section->VirtualAddress) &&
|
||||
rva - yr_le32toh(section->VirtualAddress) < yr_le32toh(section->Misc.VirtualSize) &&
|
||||
section_rva <= yr_le32toh(section->VirtualAddress))
|
||||
{
|
||||
// Round section_offset
|
||||
|
||||
Reference in New Issue
Block a user