-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I noticed, that rules like:
rule bad_type_percentage {
strings:
$s = "test"
condition:
"test"% of them
}
Result in error:
error: rule "bad_type_percentage" in test.yar(5): wrong type "string" for % operator
But when I execute this python code:
import yaramod
y = yaramod.Yaramod()
yara_file = y.parse_string(r'''
rule bad_type_percentage {
strings:
$s = "test"
condition:
"test"% of them
}
''')
print(yara_file.text)
No exception is raised by yaramod. Shouldn't yaramod also test the data type of the expression before the percentage (%) operator?
Metadata
Metadata
Assignees
Labels
No labels