Merge pull request #1407 from projectdiscovery/issue-1405-cve-annotate-crash

Fixing CVE annotate crash
This commit is contained in:
Sandeep Singh 2021-12-20 19:53:37 +05:30 committed by GitHub
commit c1b55d06a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ func getCVEData(client *nvd.Client, filePath, data string) {
cveName := matches[0][1]
severityMatches := severityRegex.FindAllStringSubmatch(data, 1)
if len(matches) == 0 {
if len(severityMatches) == 0 {
return
}
severityValue := severityMatches[0][1]