Skip to content
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

Use double for scores in vtseverity_t and helpers #472

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Apr 8, 2021

What:
The typedef and the functions nvti_severity_score, vtseverity_new and
vtseverity_new now use double to be able to handle CVSS scores.

Why:
The score handling in gvmd will use CVSS scores instead of integer ones.

How:
Tested by running gvmd --rebuild in an updated gvmd that uses CVSS scores and checking that scores are not truncated to integers.

Checklist:

The typedef and the functions nvti_severity_score, vtseverity_new and
vtseverity_new now use double to be able to handle CVSS scores.
@timopollmeier timopollmeier marked this pull request as ready for review April 8, 2021 14:07
@timopollmeier timopollmeier added the backport-to-main This pull request will be ported to the master branch label Apr 8, 2021
@bjoernricks bjoernricks merged commit 6926ef3 into greenbone:gvm-libs-21.04 Apr 9, 2021
nichtsfrei added a commit that referenced this pull request Apr 13, 2021
Use double for scores in vtseverity_t and helpers (bp #472)
@timopollmeier timopollmeier deleted the vt-severities branch October 15, 2021 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-main This pull request will be ported to the master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants