Skip to content

Commit

Permalink
Merge pull request #354 from future-architect/mistook-english
Browse files Browse the repository at this point in the history
Fix candidate to confidence.
  • Loading branch information
kotakanbe authored Feb 23, 2017
2 parents b079f5e + b4be117 commit 5581a5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ CVE-2016-5636 10.0 (High) CPython の zipimport.c の get_data 関
python27-2.7.10-4.119.amzn1 -> python27-2.7.12-2.120.amzn1
python27-devel-2.7.10-4.119.amzn1 -> python27-devel-2.7.12-2.120.amzn1
python27-libs-2.7.10-4.119.amzn1 -> python27-libs-2.7.12-2.120.amzn1
Candidate: 100 / YumUpdateSecurityMatch
Confidence: 100 / YumUpdateSecurityMatch
... snip ...
````
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ CVE-2016-5636 10.0 (High) Integer overflow in the get_data functio
python27-2.7.10-4.119.amzn1 -> python27-2.7.12-2.120.amzn1
python27-devel-2.7.10-4.119.amzn1 -> python27-devel-2.7.12-2.120.amzn1
python27-libs-2.7.10-4.119.amzn1 -> python27-libs-2.7.12-2.120.amzn1
Candidate: 100 / YumUpdateSecurityMatch
Confidence: 100 / YumUpdateSecurityMatch
... snip ...
````
Expand Down
6 changes: 3 additions & 3 deletions report/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ No CVE-IDs are found in updatable packages.
switch {
case config.Conf.Lang == "ja" &&
0 < d.CveDetail.Jvn.CvssScore():
summary := fmt.Sprintf("%s\n%s\n%s\n%sCandidate: %v",
summary := fmt.Sprintf("%s\n%s\n%s\n%sConfidence: %v",
d.CveDetail.Jvn.CveTitle(),
d.CveDetail.Jvn.Link(),
distroLinks(d, r.Family)[0].url,
Expand All @@ -145,7 +145,7 @@ No CVE-IDs are found in updatable packages.
}

case 0 < d.CveDetail.CvssScore("en"):
summary := fmt.Sprintf("%s\n%s/%s\n%s\n%sCandidate: %v",
summary := fmt.Sprintf("%s\n%s/%s\n%s\n%sConfidence: %v",
d.CveDetail.Nvd.CveSummary(),
cveDetailsBaseURL,
d.CveDetail.CveID,
Expand All @@ -162,7 +162,7 @@ No CVE-IDs are found in updatable packages.
summary,
}
default:
summary := fmt.Sprintf("%s\n%sCandidate: %v",
summary := fmt.Sprintf("%s\n%sConfidence: %v",
distroLinks(d, r.Family)[0].url, packsVer, d.VulnInfo.Confidence)
scols = []string{
d.CveDetail.CveID,
Expand Down

0 comments on commit 5581a5c

Please sign in to comment.