Skip to content

YARA-1550: Yara42 new math attributes #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 17, 2022
Merged

Conversation

TadeasKucera
Copy link
Contributor

Mirrors the changes in yara introduced here:
VirusTotal/yara@87bc03d
VirusTotal/yara@0d5f2cd
VirusTotal/yara@2edd10c
Solves YARA-1550, YARA-1552 and YARA-1556.

@@ -3521,17 +3521,17 @@ import "math"
rule math_module
{
condition:
math.entropy("dummy") > 7
math.to_number(math.entropy("dummy") > 7) == 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a brand new test instead of rewriting existing one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have a test for each module attribute, so I personally think there is no trouble with testing more functions within one test. But I can create a new test if you would prefer it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, just put there more attributes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@metthal metthal merged commit 853d0a0 into master Feb 17, 2022
@metthal metthal deleted the yara42_new_math_attributes branch February 17, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants