-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add: Allow getting score of CVSS 4.0 vectors #814
Conversation
The function get_cvss_score_from_base_metrics can now also calculate the score of CVSS 4.0 vectors.
These should never occur but this ensures the values are always set, so variables are initialized.
6e0f27a
to
1bdb8a5
Compare
The max_vectors should never be empty, so an invalid value is assigned just for safety.
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.
You may want to update the header of the file cvss.c
to include a section for CVSS v4.0
with links to the specification similar to what exists for other CVSS versions.
A typo has been fixed and some missing frees, error handling cases and comments have been added.
There is a code format error that is causing the build CI check to fail. You may need to run: |
What
The function get_cvss_score_from_base_metrics can now also calculate the score of CVSS 4.0 vectors.
Why
To be able to use CVSS 4.0 in VTs.
References
GEA-529
Checklist