You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expressions like this are not valid, but we allow them:
for -1 i in (0 .. 1) : (true)
for -1 i in (0 .. 1): (true)
for -123 i in (0 .. 1): (true)
rule test {
condition:
for -1 i in (0): (true)
}
env λ ~/dev/yara/yara for.yar /dev/null
error: rule "test" in for.yar(3): invalid value in condition: "-1"
>>> ymod.parse_string('''rule test {
... condition:
... for -1 i in (0): (true)
... }
... ''')
<yaramod.YaraFile object at 0x7f4cebab9070>
Definition of done: Yaramod won't parse the negative numbers, which is the same behavior as current YARA parser.
The text was updated successfully, but these errors were encountered:
Expressions like this are not valid, but we allow them:
Definition of done: Yaramod won't parse the negative numbers, which is the same behavior as current YARA parser.
The text was updated successfully, but these errors were encountered: