Use version comparison logic when parsing change log (Ubuntu, Debian)

This commit is contained in:
kota kanbe
2017-07-29 14:02:06 +09:00
parent 56603dcfae
commit 4379b8bacf
3 changed files with 85 additions and 72 deletions

View File

@@ -160,7 +160,7 @@ func (v CveContents) MaxCvss2Score() CveContentCvss {
return value
}
// If CVSS score isn't on NVD, RedHat and JVN use OVAL's Severity information.
// If CVSS score isn't on NVD, RedHat and JVN, use OVAL's Severity information.
// Convert severity to cvss srore, then returns max severity.
// Only Ubuntu, RedHat and Oracle OVAL has severity data.
order = []CveContentType{Ubuntu, RedHat, Oracle}