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
In a few situations, a valid rule fails to be written (using -c or -i) with the following error:
./CCCS-Yara/yara-validator/yara_file_processor.py", line 184, in strings_of_rules_to_original_file
changed_rule_string = rule.rule_return.validated_rule.splitlines()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'splitlines'
These regular expressions appear to the cause of the issue:
In a few situations, a valid rule fails to be written (using
-c
or-i
) with the following error:These regular expressions appear to the cause of the issue:
CCCS-Yara/yara-validator/yara_validator.py
Lines 246 to 247 in 4cca674
Based on these expressions:
meta
and:
must be on the same line, and be the only contents of that line.strings
orcondition
and:
must be on the same line, and be the only contents of that line.This breaks otherwise valid rules:
And on the most extreme end:
The text was updated successfully, but these errors were encountered: