-
Notifications
You must be signed in to change notification settings - Fork 544
fix: Be more flexible in GCC detection logic #4755
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
bf809d5
to
cd92548
Compare
This detects GCC in a number of packages, mainly (but not exclusively) on NetBSD. Seems reasonable, but you may want to double check. |
cd92548
to
23ee40e
Compare
You made a mistake when adding gcc in
|
23ee40e
to
aee3713
Compare
You are right @ffontaine , thanks. Rebased and amended. |
@terriko This will require one more approval. |
08b3fac
to
45b8bb9
Compare
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.
Looks like there's still a test failure here:
=========================== short test summary info ============================
FAILED test/test_scanner.py::TestScanner::test_version_in_package[https://mirror.msys2.org/mingw/ucrt64/-mingw-w64-ucrt-x86_64-cairo-1.18.2-2-any.pkg.tar.zst-cairo-1.18.2-other_products92] - AssertionError: gcc found in mingw-w64-ucrt-x86_64-cairo-1.18.2-2-any.pkg.tar.zst. If that's expected, make sure to add gcc to the expected list of other_products.
assert 'gcc' not in {'cairo', 'gcc'}
=========== 1 failed, 1903 passed, 18 warnings in 1211.34s (0:20:11) ===========
And I have to ask... is GCC really in all of these products or are we making more false positives here because they were compiled with gcc but don't actually contain it? Because I feel like at least some of these may be false positives.
Oh, and updating the branch will fix the spelling error; sorry about that. |
Indeed, gcc is not really in all of these products. Most (all?) of them are just binaries compiled with gcc. However, a lot of the CVEs related to gcc are related to the binary code generated by gcc such as CVE-2023-4039. So I think that this PR shall be merged. @qmfrederik can you update this PR (i.e., fix cairo test)? |
I think those binaries are compiled with GCC and most likely also contain a static copy of the GCC runtime library, which causes them to show up. I've fixed the cairo issue and rebased on main. Let's see what CI has to say, hopefully good to go! |
jbigkit test package raises an error:
|
PR has been updated by @qmfrederik as requested by @terriko
All checks successful, merging |
No description provided.