Vault3991 Fix lower bound check (#13727)
* code scanning alerts changes * adding changelog * fixing lower bound check
This commit is contained in:
parent
ab9a91bec9
commit
0858af2685
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue