mirror of
https://github.com/avast/retdec.git
synced 2024-11-23 13:00:13 +00:00
A more elegant way to tests sections
This commit is contained in:
parent
5fdd69353c
commit
9f94a0f7d9
@ -3424,7 +3424,7 @@ rule wix_toolset_3x
|
||||
$s03 = "Failed to read section info, data to short: %u"
|
||||
$h04 = {00 43 F1 00 02 00 00 00} // Wix section header + version
|
||||
condition:
|
||||
for any i in (0 .. pe.number_of_sections) : ((pe.sections[i].name == ".wixburn") and ($h04 at pe.sections[i].raw_data_offset)) and
|
||||
for any section in pe.sections : ((section.name == ".wixburn") and ($h04 at section.raw_data_offset)) and
|
||||
all of them
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user