Vault3991 Fix lower bound check (#13727)

* code scanning alerts changes

* adding changelog

* fixing lower bound check
This commit is contained in:
akshya96
2022-01-20 12:05:22 -08:00
committed by GitHub
parent 77e6d08ff6
commit d58c95d457

View File

@@ -377,7 +377,7 @@ func (i *uintValue) Set(s string) error {
if err != nil {
return err
}
if v > 0 && v <= math.MaxUint {
if v >= 0 && v <= math.MaxUint {
*i.target = uint(v)
return nil
}