-
Notifications
You must be signed in to change notification settings - Fork 544
feat(checkers): Add support for llvm #4752
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
5a1ede5
to
9d41e72
Compare
9d41e72
to
bbc7562
Compare
Ugh, these are all so similar. I don't think you're wrong about what you're doing, but I wonder if we can collapse them down to be auto-generated or something in a future refactoring. |
Yes, it's not pretty. The ecosystem is pretty intentional about maintaining different versions as different products (i.e. 'llvm17' is a different product than 'llvm16'), amongst others to allow multiple versions to co-exist on the same machine. Templating is one option, subclassing may be another. |
bbc7562
to
2ab2eed
Compare
52fe9a0
to
c8731ce
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.
Looking at this again. Should we be using unknown, llvm-toolchain-*
here for each CPE or do these all actually fall under the llvm, llvm
category? Or is there a PURL identifier we should be looking at instead? A quick search made it seem like it should probably be the llvm, llvm
, but I admit I don't know the vuln history for these components very well.
There is no CVEs linked to |
c8731ce
to
6616747
Compare
There is always 3 digits in llvm version and "version" string seems to be mandatory so I would suggest to replace:
by
|
6616747
to
0c10652
Compare
Adds support for llvm
0c10652
to
df05016
Compare
Thanks @ffontaine . I seem to remember having seen an instance where the word |
Hi @qmfrederik, when I double-checked, one of your previous iteration, I found out that you added llvm in If you think that llvm was indeed really used to compile |
@ffontaine I think we can leave this as is for now -- I assume it will detect clang, which is probably good enough a proxy for LLVM at the moment. @terriko If you agree, then this PR is ready (the spelling check appears to be a flake) |
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.
Okay, I think I agree that this is ready to go (sorry I missed that it's been ready for a while because I was doing hackathon stuff!) I'm going to update the branch and re-run tests just in case, but assuming they pass I intend to come back and merge this.
All tests successful, I could merge it however @terriko what is the merge rule for cve-bin-tool? Is it fine to "squash and merge"? |
@ffontaine Yes, I typically squash and merge (often editing the long commit message down to something reasonable if there's been a lot of churn). The times when I haven't done that are mostly mistakes due to using a different browser and not realizing which was the default selection. Anyhow, I'll get this merged now, thank you @qmfrederik for your patience! |
No description provided.