repo_id stringclasses 927
values | file_path stringlengths 99 214 | content stringlengths 2 4.15M |
|---|---|---|
test | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/internal/test/packages.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package test
import (
"os/exec"
"strings"
"testing"
"golang.org/x/tools/go/packages"
)
func VerifyImports(t *testing.T, allowed ...string) {
if _, err :... |
test | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/internal/test/handler.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package test
import (
"sort"
"golang.org/x/vuln/internal/govulncheck"
"golang.org/x/vuln/internal/osv"
)
// MockHandler implements govulncheck.Handler but... |
govulncheck | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/test_utils.go | // Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"encoding/json"
"os"
"path/filepath"
"regexp"
"runtime"
"testing"
)
// copyTestCase copies the test case at dir into a
// temporar... |
govulncheck | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/main_test.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"context"
"flag"
"fmt"
"os"
"path/filepath"
"runtime"
"sync"
"testing"
"unsafe"
"github.com/google/go-cmdtest"
"gith... |
govulncheck | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/doc.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Govulncheck reports known vulnerabilities that affect Go code. It uses static
analysis of source code or a binary's symbol table to narrow down reports to
on... |
govulncheck | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/main.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"context"
"fmt"
"os"
"golang.org/x/telemetry"
"golang.org/x/vuln/scan"
)
func main() {
telemetry.Start(telemetry.Config{ReportCra... |
integration | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/Dockerfile | FROM golang:1.22.3-alpine
# This Dockerfile sets up an image for repeated integration testing.
# This assumes the build context, i.e., CWD is vuln/
# ---- Step 0: Setup shared build tools. ----
RUN apk update && apk add bash git gcc musl-dev linux-headers gcompat
# ---- Step 1: Build govulncheck ----
COPY . /go/src/... |
integration | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/integration_run.sh | #!/bin/bash
# Copyright 2022 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
#!/bin/bash
# List of all projects for which integration test failed, if any.
failed=()
# Update status of the integration script. The first argument... |
integration | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/integration_test.sh | #!/bin/bash
# Copyright 2022 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Runs the integration tests for whole program analysis.
# Assumes this is run from vuln/cmd/govulncheck/integration
echo "Building govulncheck docker... |
integration | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/internal/integration/test.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package integration
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"log"
"os"
"golang.org/x/vuln/internal/govulncheck"
)
// CompareVulns checks if pa... |
k8s | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/k8s/k8s.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"log"
"os"
"golang.org/x/vuln/cmd/govulncheck/integration/internal/integration"
)
const usage = `test helper for examining the outpu... |
kokoro | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/kokoro/integration.cfg | # Format: //devtools/kokoro/config/proto/build.proto
build_file: "vuln/cmd/govulncheck/integration/kokoro/integration.sh"
|
kokoro | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/kokoro/integration.sh | #!/bin/bash
# Copyright 2022 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Run integration_test.sh on kokoro.
# Fail on any error.
set -e
# Code under repo is checked out to ${KOKORO_ARTIFACTS_DIR}/git.
# The main director... |
stackrox-scanner | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/integration/stackrox-scanner/scanner.go | // Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"log"
"os"
"golang.org/x/vuln/cmd/govulncheck/integration/internal/integration"
)
const usage = `test helper for examining the outpu... |
common | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/config.json | {
"fixups": [
{
"pattern": "Scanning your code and (\\d+) packages across (\\d+)",
"replace": "Scanning your code and P packages across M"
},
{
"pattern": "Scanner: govulncheck@v.*",
"replace": "Scanner: govulncheck@v1.0.0"
},
{
"pattern": "\"([^\"]*\") is a file",
... |
multientry | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/multientry/go.mod | module golang.org/multientry
go 1.18
require golang.org/x/text v0.3.5
|
multientry | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/multientry/go.sum | golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
multientry | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/multientry/main.go | package main
import (
"fmt"
"os"
"golang.org/x/text/language"
)
func main() {
args := os.Args[1:]
// Calls foo which directly calls language.Parse.
A()
// Also calls foo which directly calls language.Parse.
B()
// Calls language.Parse directly.
//
// This will be displayed by govulncheck, since it is t... |
replace | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/replace/go.mod | module golang.org/replace
go 1.20
replace golang.org/x/text v0.9.0 => golang.org/x/text v0.3.0
require golang.org/x/text v0.9.0
|
replace | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/replace/go.sum | golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
replace | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/replace/main.go | package main
import (
"fmt"
"golang.org/x/text/language"
)
func main() {
fmt.Println("hello")
language.Parse("")
}
|
vendored | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/go.mod | module golang.org/vendored
go 1.18
require (
// This version has one vulnerability that is imported, and
// one that is called.
github.com/tidwall/gjson v1.6.5
// This version has a vulnerability that is called.
golang.org/x/text v0.3.0
private.com/privateuser/fakemod v1.0.0
)
require (
github.com/tidwall/mat... |
vendored | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/go.sum | github.com/tidwall/gjson v1.6.5 h1:P/K9r+1pt9AK54uap7HcoIp6T3a7AoMg3v18tUis+Cg=
github.com/tidwall/gjson v1.6.5/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI=
github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/match v1.1.0 h1:VfI2e2aXLvytih7WUVyO9uvRC+RcXla... |
vendored | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/vendored.go | package main
import (
"encoding/pem"
"private.com/privateuser/fakemod"
"golang.org/x/text/language"
)
func main() {
fakemod.Leave()
language.Parse("")
_, _ = pem.Decode([]byte("test"))
}
|
vendor | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/vendor/modules.txt | # github.com/tidwall/gjson v1.6.5
## explicit; go 1.12
github.com/tidwall/gjson
# github.com/tidwall/match v1.1.0
## explicit; go 1.15
github.com/tidwall/match
# github.com/tidwall/pretty v1.2.0
## explicit; go 1.16
github.com/tidwall/pretty
# golang.org/x/text v0.3.0
## explicit
golang.org/x/text/internal/tag
golang.o... |
language | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/vendor/golang.org/x/text/language/language.go | package language
var prevent_optimization int
func Parse(string) {
prevent_optimization++
}
|
gjson | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/vendor/github.com/tidwall/gjson/gjson.go | package gjson
var prevent_optimization int
type Result struct{}
func (Result) Get(string) {
Get("", "")
}
func Get(json, path string) Result {
prevent_optimization++
return Result{}
}
|
fakemod | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/vendor/private.com/privateuser/fakemod/mod.go | package fakemod
import "github.com/tidwall/gjson"
func Leave() {
gjson.Result{}.Get("")
}
|
subdir | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vendored/subdir/subdir.go | package subdir
import (
"golang.org/x/text/language"
)
func Foo() {
language.Parse("")
}
|
wholemodvuln | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/wholemodvuln/go.mod | module golang.org/wholemodvuln
go 1.18
require gopkg.in/yaml.v2 v2.2.3
|
wholemodvuln | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/wholemodvuln/whole_mod_vuln.go | package main
import (
"gopkg.in/yaml.v2"
)
func main() {
_, _ = yaml.Marshal(nil)
}
|
wholemodvuln | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/wholemodvuln/go.sum | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.3 h1:fvjTMHxHEw/mxHbtzPi3JCcKXQRAnQTBRo6YCJSVHKI=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93X... |
vuln | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vuln/go.mod | module golang.org/vuln
go 1.18
require (
// This version has one vulnerability that is imported, and
// one that is called.
github.com/tidwall/gjson v1.6.5
// This version has a vulnerability that is called.
golang.org/x/text v0.3.0
)
require (
github.com/tidwall/match v1.1.0 // indirect
github.com/tidwall/pr... |
vuln | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vuln/vuln.go | package main
import (
"encoding/pem"
"fmt"
"github.com/tidwall/gjson"
"golang.org/x/text/language"
)
func main() {
fmt.Println("hello")
language.Parse("")
gjson.Result{}.Get("")
_, _ = pem.Decode([]byte("test"))
}
|
vuln | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vuln/go.sum | github.com/tidwall/gjson v1.6.5 h1:P/K9r+1pt9AK54uap7HcoIp6T3a7AoMg3v18tUis+Cg=
github.com/tidwall/gjson v1.6.5/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI=
github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/match v1.1.0 h1:VfI2e2aXLvytih7WUVyO9uvRC+RcXla... |
subdir | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/vuln/subdir/subdir.go | package subdir
import (
"golang.org/x/text/language"
)
func Foo() {
language.Parse("")
}
|
informational | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/informational/go.mod | module golang.org/vuln
go 1.18
// This version has a vulnerability that is imported.
require github.com/tidwall/gjson v1.9.2
require (
github.com/tidwall/match v1.1.0 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
)
|
informational | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/informational/vuln.go | package main
import (
"fmt"
"github.com/tidwall/gjson"
)
func main() {
fmt.Println("hello")
gjson.Valid("{hello: world}")
}
|
informational | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/modules/informational/go.sum | github.com/tidwall/gjson v1.9.2 h1:SJQc2IgWWKL5V+YGJrr95hjNXFeZzHT2L9Wv1aAb51Q=
github.com/tidwall/gjson v1.9.2/go.mod h1:2tcKM/KQ/GjiTN7mfTL/HdNmef9Q6AZLaSK2RdfvSjw=
github.com/tidwall/match v1.1.0 h1:VfI2e2aXLvytih7WUVyO9uvRC+RcXlaTrMbHuQWnFmk=
github.com/tidwall/match v1.1.0/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2021-0113.json | {"schema_version":"1.3.1","id":"GO-2021-0113","modified":"2023-04-03T15:57:51Z","published":"2021-10-06T17:51:21Z","aliases":["CVE-2021-38561","GHSA-ppp9-7jff-5vj2"],"details":"Due to improper index calculation, an incorrectly formatted language tag can cause Parse to panic via an out of bounds read. If Parse is used t... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2020-0015.json | {"schema_version":"1.3.1","id":"GO-2020-0015","modified":"2023-04-03T15:57:51Z","published":"2021-04-14T20:04:52Z","aliases":["CVE-2020-14040","GHSA-5rcv-m4m3-hfh7"],"summary":"Infinite loop when decoding some inputs in golang.org/x/text","details":"An attacker could provide a single byte to a UTF16 decoder instantiate... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2021-0054.json | {"schema_version":"1.3.1","id":"GO-2021-0054","modified":"2023-04-03T15:57:51Z","published":"2021-04-14T20:04:52Z","aliases":["CVE-2020-36067","GHSA-p64j-r5f4-pwwx"],"details":"Due to improper bounds checking, maliciously crafted JSON objects can cause an out-of-bounds panic. If parsing user input, this may be used as ... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2021-0265.json | {"schema_version":"1.3.1","id":"GO-2021-0265","modified":"2023-04-03T15:57:51Z","published":"2022-08-15T18:06:07Z","aliases":["CVE-2021-42248","CVE-2021-42836","GHSA-c9gm-7rfj-8w5h","GHSA-ppj4-34rq-v8j9"],"details":"A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU a... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2022-0956.json | {
"schema_version": "1.3.1",
"id": "GO-2022-0956",
"modified": "0001-01-01T00:00:00Z",
"published": "2022-08-29T22:15:46Z",
"aliases": [
"CVE-2022-3064",
"GHSA-6q6q-88xp-6f2r"
],
"summary": "Excessive resource consumption in gopkg.in/yaml.v2",
"details": "Parsing malicious or large YAML document... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2022-0969.json | {"schema_version":"1.3.1","id":"GO-2022-0969","modified":"2023-04-03T15:57:51Z","published":"2022-09-12T20:23:06Z","aliases":["CVE-2022-27664","GHSA-69cg-p879-7622"],"details":"HTTP/2 server connections can hang forever waiting for a clean shutdown that was preempted by a fatal error. This condition can be exploited by... |
ID | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/ID/GO-2021-0059.json | {"schema_version":"1.3.1","id":"GO-2021-0059","modified":"2023-04-03T15:57:51Z","published":"2021-04-14T20:04:52Z","aliases":["CVE-2020-35380","GHSA-w942-gw6m-p62c"],"details":"Due to improper bounds checking, maliciously crafted JSON objects can cause an out-of-bounds panic. If parsing user input, this may be used as ... |
index | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/index/modules.json | [{"path":"github.com/tidwall/gjson","vulns":[{"id":"GO-2021-0054","modified":"2023-04-03T15:57:51Z","fixed":"1.6.6"},{"id":"GO-2021-0059","modified":"2023-04-03T15:57:51Z","fixed":"1.6.4"},{"id":"GO-2021-0265","modified":"2023-04-03T15:57:51Z","fixed":"1.9.3"}]},{"path":"golang.org/x/net","vulns":[{"id":"GO-2022-0969",... |
index | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/index/vulns.json | [{"id":"GO-2020-0015","modified":"2023-04-03T15:57:51Z","aliases":["CVE-2020-14040","GHSA-5rcv-m4m3-hfh7"]},{"id":"GO-2021-0054","modified":"2023-04-03T15:57:51Z","aliases":["CVE-2020-36067","GHSA-p64j-r5f4-pwwx"]},{"id":"GO-2021-0059","modified":"2023-04-03T15:57:51Z","aliases":["CVE-2020-35380","GHSA-w942-gw6m-p62c"]... |
index | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/vulndb-v1/index/db.json | {"modified":"2023-04-03T15:57:51Z"} |
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/no_header.blob | {"modules":[{"Path":"github.com/tidwall/gjson","Version":"v1.6.5","Replace":null,"Time":null,"Main":false,"Indirect":false,"Dir":"","GoMod":"","GoVersion":"","Error":null}]}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/usage_fail.ct | #####
# Test of invalid input to -mode
$ govulncheck -mode=invalid ./... --> FAIL 2
invalid value "invalid" for flag -mode: see -help for details
#####
# Test of trying to run -json with -show flag
$ govulncheck -C ${moddir}/vuln -show=traces -json . --> FAIL 2
the -show flag is not supported for json output
#####
# ... |
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/binary_fail.ct | #####
# Test of passing a non-file to -mode=binary
$ govulncheck -mode=binary notafile --> FAIL 2
"notafile" is not a file
#####
# Test of passing a non-binary and non-blob file to -mode=binary
$ govulncheck -mode=binary ${moddir}/vuln/go.mod --> FAIL 1
govulncheck: unrecognized binary format
#####
# Test of passing ... |
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/no_body.blob | {"name":"govulncheck-extract","version":"0.1.0"}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/invalid_header.blob | {"id":"invalid-name","protocol":"0.1.0"}{"modules":[{"Path":"github.com/tidwall/gjson","Version":"v1.6.5","Replace":null,"Time":null,"Main":false,"Indirect":false,"Dir":"","GoMod":"","GoVersion":"","Error":null}]}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/extract_fail.ct | #####
# Test extraction of an unsupported file format
$ govulncheck -mode=extract ${moddir}/vuln/go.mod --> FAIL 1
govulncheck: unrecognized binary format
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/invalid_header_version.blob | {"name":"govulncheck-extract","version":"8.8.8"}{"modules":[{"Path":"github.com/tidwall/gjson","Version":"v1.6.5","Replace":null,"Time":null,"Main":false,"Indirect":false,"Dir":"","GoMod":"","GoVersion":"","Error":null}]}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/multi_header.blob | {"name":"govulncheck-extract","version":"0.1.0"}{"name":"govulncheck-extract","version":"0.1.0"}{"modules":[]}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/source_fail.ct | #####
# Test of handing a binary to source mode
$ govulncheck ${common_vuln_binary} --> FAIL 2
govulncheck: myfile is a file.
By default, govulncheck runs source analysis on Go modules.
Did you mean to run govulncheck with -mode=binary?
For details, run govulncheck -h.
#####
# Test of handing an invalid package pat... |
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/empty_message.blob | {}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/invalid_header_name.blob | {"name":"invalid-name","version":"0.1.0"}{"modules":[{"Path":"github.com/tidwall/gjson","Version":"v1.6.5","Replace":null,"Time":null,"Main":false,"Indirect":false,"Dir":"","GoMod":"","GoVersion":"","Error":null}]}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/after_body.blob | {"name":"govulncheck-extract","version":"0.1.0"}{"modules":[]}{"name":"govulncheck-extract","version":"0.1.0"}
|
failures | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/failures/query_fail.ct | #####
# Test of query mode with invalid input.
$ govulncheck -mode=query -format json example.com/module@ --> FAIL 2
invalid query example.com/module@: must be of the form module@version
|
binary-module | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-module/binary_module_text.ct | #####
# Test binary scanning at the module level
$ govulncheck -mode=binary -scan module ${common_vuln_binary} --> FAIL 3
=== Module Results ===
Vulnerability #1: GO-2021-0265
A maliciously crafted path can cause Get and other query functions to
consume excessive amounts of CPU and time.
More info: https://p... |
binary-module | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-module/binary_module_json.ct | #####
# Test binary scanning at the module level with json output
$ govulncheck -format json -mode binary -scan module ${common_vuln_binary}
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
... |
query | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/query/query_json.ct | #####
# Test of query mode for a third party module.
$ govulncheck -mode=query -format json github.com/tidwall/gjson@v1.6.5
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modifi... |
query | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/query/query_multi_json.ct | #####
# Test of query mode with multiple inputs.
$ govulncheck -mode=query -format json golang.org/x/text@v0.3.0 github.com/tidwall/gjson@v1.6.5
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1"... |
binary-package | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-package/binary_package_json.ct | #####
# Test binary scanning at the package level with json output
$ govulncheck -format json -mode binary -scan package ${common_vuln_binary}
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
... |
binary-package | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-package/binary_package_text.ct | # Test binary scanning at the package level.
$ govulncheck -mode=binary -scan package ${common_vuln_binary} --> FAIL 3
=== Package Results ===
Vulnerability #1: GO-2021-0265
A maliciously crafted path can cause Get and other query functions to
consume excessive amounts of CPU and time.
More info: https://pkg... |
usage | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/usage/format.ct | #####
# Test of explicit text format
$ govulncheck -C ${moddir}/informational -format text .
=== Symbol Results ===
No vulnerabilities found.
Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn't appe... |
usage | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/usage/source_no_packages.ct | #####
# Test message when there are no packages matching the provided pattern (#59623).
$ govulncheck -C ${moddir}/vuln pkg/no-govulncheck/...
No vulnerabilities found.
|
usage | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/usage/usage.ct | #####
# Test of govulncheck help output
$ govulncheck -h
Govulncheck reports known vulnerabilities in dependencies.
Usage:
govulncheck [flags] [patterns]
govulncheck -mode=binary [flags] [binary]
-C dir
change to dir before running govulncheck
-db url
vulnerability database url (default "https://vuln... |
extract | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/extract/binary_extract.ct | #####
# Test binary mode using the extracted binary blob.
$ govulncheck -mode=binary ${testdir}/extract/vuln.blob --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0265
A maliciously crafted path can cause Get and other query functions to
consume excessive amounts of CPU and time.
More info: https:... |
extract | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/extract/vuln.blob | {"name":"govulncheck-extract","version":"0.1.0"}
{"path":"golang.org/vuln","main":{"Path":"golang.org/vuln","Version":"(devel)","Replace":null,"Time":null,"Main":false,"Indirect":false,"Dir":"","GoMod":"","GoVersion":"","Error":null},"modules":[{"Path":"github.com/tidwall/gjson","Version":"v1.6.5","Replace":null,"Time"... |
binary-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-call/binary_sarif.ct | #####
# Test basic binary scanning with sarif output
$ govulncheck -format sarif -mode binary ${common_vuln_binary}
{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"runs": [
{
"tool": {
"driver": {
"name": "govulncheck",
"semanticVersion": "v... |
binary-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-call/binary_vendored_json.ct | #####
# Test basic binary scanning with json output
$ govulncheck -format json -mode binary ${common_vendored_binary}
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modified": "... |
binary-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-call/binary_vex.ct | #####
# Test basic binary scanning with vex output
$ govulncheck -format openvex -mode binary ${common_vuln_binary}
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "govulncheck/vex:12f16e1541f93ab0d46d78966849d71bc20932795108f69d0df5a415a2c3a5e6",
"author": "Unknown Author",
"timestamp": "2024-01-01T00:00... |
binary-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-call/binary_call_text.ct | #####
# Test basic binary scanning with text output
$ govulncheck -mode=binary ${common_vuln_binary} --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0265
A maliciously crafted path can cause Get and other query functions to
consume excessive amounts of CPU and time.
More info: https://pkg.go.dev/... |
binary-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/binary-call/binary_call_json.ct | #####
# Test basic binary scanning with json output
$ govulncheck -format json -mode binary ${common_vuln_binary}
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modified": "2023... |
convert | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/convert/convert_input.json | {
"config": {
"protocol_version": "v0.1.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modified": "2023-04-03T15:57:51Z",
"go_version": "go1.18",
"scan_level": "symbol"
}
}
{
"progress": {
"message": "... |
convert | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/convert/convert_text.ct | #####
# Test using the conversion from json on stdin to text on stdout
# location of convert input is subdirectory/convert_intput
$ govulncheck -mode=convert < convert/convert_input.json --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0265
A maliciously crafted path can cause Get and other query functi... |
source-package | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-package/source_package_sarif.ct | #####
# Test sarif output
$ govulncheck -format sarif -scan package -C ${moddir}/vuln .
{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"runs": [
{
"tool": {
"driver": {
"name": "govulncheck",
"semanticVersion": "v0.0.0",
"informati... |
source-package | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-package/source_package_text.ct | #####
# Testing that govulncheck doesn't mention calls when it doesn't have the relevant info
$ govulncheck -scan package -C ${moddir}/multientry . --> FAIL 3
=== Package Results ===
Vulnerability #1: GO-2021-0113
Due to improper index calculation, an incorrectly formatted language tag can
cause Parse to panic... |
source-package | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-package/source_package_json.ct | #####
# Test that findings with callstacks are not emitted in package mode
$ govulncheck -format json -scan package -C ${moddir}/multientry .
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
... |
source-module | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-module/source_module_json.ct | #####
# Test that findings with callstacks or packages are not emitted in module mode
$ govulncheck -format json -scan module -C ${moddir}/multientry
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulnd... |
source-module | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-module/source_module_text.ct | #####
# Testing that govulncheck doesn't mention calls when it doesn't
# have callstack information
$ govulncheck -scan module -C ${moddir}/multientry --> FAIL 3
=== Module Results ===
Vulnerability #1: GO-2021-0113
Due to improper index calculation, an incorrectly formatted language tag can
cause Parse to pan... |
source-module | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-module/source_module_sarif.ct | #####
# Test sarif output
$ govulncheck -format sarif -scan module -C ${moddir}/vuln
{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"runs": [
{
"tool": {
"driver": {
"name": "govulncheck",
"semanticVersion": "v0.0.0",
"informationU... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_call_json.ct | #####
$ govulncheck -C ${moddir}/vuln -format json ./...
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modified": "2023-04-03T15:57:51Z",
"go_version": "go1.18",
"scan_... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_call_vex.ct | #####
# Test vex json output
$ govulncheck -C ${moddir}/vuln -format openvex ./...
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "govulncheck/vex:12f16e1541f93ab0d46d78966849d71bc20932795108f69d0df5a415a2c3a5e6",
"author": "Unknown Author",
"timestamp": "2024-01-01T00:00:00",
"version": 1,
"tooling"... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_multientry_text.ct | #####
# Test for multiple call stacks in source mode
$ govulncheck -C ${moddir}/multientry . --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0113
Due to improper index calculation, an incorrectly formatted language tag can
cause Parse to panic via an out of bounds read. If Parse is used to process
... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_vendored_json.ct | #####
#
$ govulncheck -C ${moddir}/vendored -format json ./...
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modified": "2023-04-03T15:57:51Z",
"go_version": "go1.18",
... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_wholemodvuln_text.ct | #####
# Test of govulncheck call analysis for vulns with no package info available.
# All symbols of the module are vulnerable.
$ govulncheck -C ${moddir}/wholemodvuln ./... --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2022-0956
Excessive resource consumption in gopkg.in/yaml.v2
More info: https://pkg.... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_vendored_text.ct | #####
# Vendored directory w text output
$ govulncheck -C ${moddir}/vendored -show verbose ./... --> FAIL 3
Scanning your code and P packages across M dependent modules for known vulnerabilities...
Fetching vulnerabilities from the database...
Checking the code against the vulnerabilities...
=== Symbol Results ===
... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_replace_json.ct | #####
# Test of source mode json on a module with a replace directive.
$ govulncheck -C ${moddir}/replace -format json ./...
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modif... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_call_text.ct | #####
# Test of basic govulncheck in source mode
$ govulncheck -C ${moddir}/vuln ./... --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0265
A maliciously crafted path can cause Get and other query functions to
consume excessive amounts of CPU and time.
More info: https://pkg.go.dev/vuln/GO-2021-0... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_replace_text.ct | #####
# Test of source mode on a module with a replace directive.
$ govulncheck -C ${moddir}/replace ./... --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0113
Due to improper index calculation, an incorrectly formatted language tag can
cause Parse to panic via an out of bounds read. If Parse is u... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_subdir_text.ct | #####
# Test govulncheck runs on the subdirectory of a module
$ govulncheck -C ${moddir}/vuln/subdir . --> FAIL 3
=== Symbol Results ===
Vulnerability #1: GO-2021-0113
Due to improper index calculation, an incorrectly formatted language tag can
cause Parse to panic via an out of bounds read. If Parse is used t... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_call_sarif.ct | #####
# Test sarif json output
$ govulncheck -C ${moddir}/vuln -format sarif ./...
{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"runs": [
{
"tool": {
"driver": {
"name": "govulncheck",
"semanticVersion": "v0.0.0",
"informationUri... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_informational_text.ct | #####
# Test source mode with no callstacks
$ govulncheck -C ${moddir}/informational -show=traces .
=== Symbol Results ===
No vulnerabilities found.
Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 0
vulnerabilities in modules you require, but your code doesn... |
source-call | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/common/testfiles/source-call/source_multientry_json.ct | #####
# Test for multiple call stacks in source mode
$ govulncheck -format json -C ${moddir}/multientry .
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v0.0.0-00000000000-20000101010101",
"db": "testdata/vulndb-v1",
"db_last_modified": "2023-04-03T1... |
main | /home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vuln/cmd/govulncheck/testdata/main/config.json | {}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.