-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
libs: yara: 4.2.3 -> 4.5.4 #8643
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
Conversation
This seems to build just fine on my Mac and a Ubuntu 24.04 VM. Trying to dig into what might be different in CI here. |
I can reproduce the issue on Linux. There's also a similar issue upstream had VirusTotal/yara#2000, and it's because they missed a file in their own build (which we are also missing, after the Yara update). Every time we update the version of a library we should really re-run all the steps, on all the platforms, to get the hardcoded configuration we write in our CMakeLists file. For Linux especially this means to concretely take a VM with the minimum version of Linux we support (CentOS 7), use the library own build system to configure it against that OS version and to determine files to build, flags to pass and so on. It's not guaranteed that a build failure exists (an API interface change) to indicate that this procedure must be done. You could get differences in performance, functionality or plain memory corruption |
Yep it's on my todo list that's why the PR is still in draft for now. |
My build flags
|
Rebased, adjusted the build config and made some tests. This should be good to go. |
"version": "4.5.4", | ||
"commit": "7ff39042be5c63682a037e13a75221d59393cf8b", | ||
"ignored-cves": [ | ||
"CVE-2021-45429" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this now? Seems like it was already not applicable in the 4.2.3 version we were using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, updated!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but let's remove that ignored CVE if it's no longer relevant.
Fixes CVE-2024-26364 Changes: https://github.com/VirusTotal/yara/releases/tag/v4.3.0 https://github.com/VirusTotal/yara/releases/tag/v4.3.1 https://github.com/VirusTotal/yara/releases/tag/v4.3.2 https://github.com/VirusTotal/yara/releases/tag/v4.4.0 https://github.com/VirusTotal/yara/releases/tag/v4.5.0 https://github.com/VirusTotal/yara/releases/tag/v4.5.1 https://github.com/VirusTotal/yara/releases/tag/v4.5.2 https://github.com/VirusTotal/yara/releases/tag/v4.5.3 https://github.com/VirusTotal/yara/releases/tag/v4.5.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you!
Fixes CVE-2024-26364
Changes:
https://github.com/VirusTotal/yara/releases/tag/v4.3.0
https://github.com/VirusTotal/yara/releases/tag/v4.3.1
https://github.com/VirusTotal/yara/releases/tag/v4.3.2
https://github.com/VirusTotal/yara/releases/tag/v4.4.0
https://github.com/VirusTotal/yara/releases/tag/v4.5.0
https://github.com/VirusTotal/yara/releases/tag/v4.5.1
https://github.com/VirusTotal/yara/releases/tag/v4.5.2
https://github.com/VirusTotal/yara/releases/tag/v4.5.3
https://github.com/VirusTotal/yara/releases/tag/v4.5.4