Fix CVE-ID is truncated to 4 digits

This commit is contained in:
Takayuki Ushida
2016-08-20 21:23:31 +09:00
parent c8e7c8b9fa
commit b1f5bdd8b2
2 changed files with 2 additions and 2 deletions

View File

@@ -589,7 +589,7 @@ func (o *debian) getCveIDParsingChangelog(changelog string,
func (o *debian) parseChangelog(changelog string,
packName string, versionOrLater string) (cveIDs []string, err error) {
cveRe, _ := regexp.Compile(`(CVE-\d{4}-\d{4})`)
cveRe, _ := regexp.Compile(`(CVE-\d{4}-\d{4,})`)
stopRe, _ := regexp.Compile(fmt.Sprintf(`\(%s\)`, regexp.QuoteMeta(versionOrLater)))
stopLineFound := false
lines := strings.Split(changelog, "\n")