Skip to content

Commit a355124

Browse files
committed
Fixed another fuzz-found bug
1 parent e8c7f5f commit a355124

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
go test fuzz v1
2+
string("1-10")
3+
string("1.0.0")

version.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ func (v *Version) CompareTo(u *Version) int {
192192
return -1
193193
}
194194
} else if vPatch == vMinor && u.bytes[uIdx] == '0' {
195-
return 0
195+
// continue
196196
} else if uPatch == uMinor && v.bytes[vIdx] == '0' {
197-
return 0
197+
// continue
198198
} else if la > lb {
199199
return 1
200200
} else {

0 commit comments

Comments
 (0)