mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-11 22:49:58 +00:00
Add test case for math.entropy where input is an empty string.
This commit is contained in:
@@ -191,6 +191,14 @@ int main(int argc, char** argv)
|
||||
}",
|
||||
NULL);
|
||||
|
||||
assert_true_rule(
|
||||
"import \"math\" \
|
||||
rule test { \
|
||||
condition: \
|
||||
math.entropy(\"\") == 0.0 \
|
||||
}",
|
||||
NULL);
|
||||
|
||||
assert_true_rule(
|
||||
"import \"math\" \
|
||||
rule test { \
|
||||
|
||||
Reference in New Issue
Block a user