File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ govulncheck is an experimental tool. Share feedback at https://go.dev/s/govulnch
7
7
Scanning for dependencies with known vulnerabilities...
8
8
No vulnerabilities found.
9
9
10
- $ govulncheck -dir ${moddir}/vuln . --> FAIL 3
10
+ $ govulncheck -tags=twocallstacks - dir ${moddir}/vuln . --> FAIL 3
11
11
govulncheck is an experimental tool. Share feedback at https://go.dev/s/govulncheck-feedback.
12
12
13
13
Scanning for dependencies with known vulnerabilities...
@@ -21,6 +21,7 @@ Vulnerability #1: GO-2021-0113
21
21
22
22
Call stacks in your code:
23
23
.../vuln.go:12:16: golang.org/vuln.main calls golang.org/x/text/language.Parse
24
+ .../vuln_extra.go:8:30: golang.org/vuln.init#1 calls golang.org/x/text/language.ParseAcceptLanguage
24
25
25
26
Found in: golang.org/x/text/
[email protected]
26
27
Fixed in: golang.org/x/text/
[email protected]
Original file line number Diff line number Diff line change
1
+ //go:build twocallstacks
2
+
3
+ package main
4
+
5
+ import "golang.org/x/text/language"
6
+
7
+ func init () {
8
+ language .ParseAcceptLanguage ("" )
9
+ }
You can’t perform that action at this time.
0 commit comments