Merge pull request #1865 from crazy-max/bump-semver
vendor: github.com/Masterminds/semver/v3 v3.2.1pull/1869/head
commit
93f7fbdd78
@ -0,0 +1,19 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
The following versions of semver are currently supported:
|
||||||
|
|
||||||
|
| Version | Supported |
|
||||||
|
| ------- | ------------------ |
|
||||||
|
| 3.x | :white_check_mark: |
|
||||||
|
| 2.x | :x: |
|
||||||
|
| 1.x | :x: |
|
||||||
|
|
||||||
|
Fixes are only released for the latest minor version in the form of a patch release.
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
You can privately disclose a vulnerability through GitHubs
|
||||||
|
[private vulnerability reporting](https://github.com/Masterminds/semver/security/advisories)
|
||||||
|
mechanism.
|
@ -1,22 +0,0 @@
|
|||||||
// +build gofuzz
|
|
||||||
|
|
||||||
package semver
|
|
||||||
|
|
||||||
func Fuzz(data []byte) int {
|
|
||||||
d := string(data)
|
|
||||||
|
|
||||||
// Test NewVersion
|
|
||||||
_, _ = NewVersion(d)
|
|
||||||
|
|
||||||
// Test StrictNewVersion
|
|
||||||
_, _ = StrictNewVersion(d)
|
|
||||||
|
|
||||||
// Test NewConstraint
|
|
||||||
_, _ = NewConstraint(d)
|
|
||||||
|
|
||||||
// The return value should be 0 normally, 1 if the priority in future tests
|
|
||||||
// should be increased, and -1 if future tests should skip passing in that
|
|
||||||
// data. We do not have a reason to change priority so 0 is always returned.
|
|
||||||
// There are example tests that do this.
|
|
||||||
return 0
|
|
||||||
}
|
|
Loading…
Reference in New Issue