mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-24 12:11:11 +01:00
Vault3991 Fix lower bound check (#13727)
* code scanning alerts changes * adding changelog * fixing lower bound check
This commit is contained in:
parent
77e6d08ff6
commit
d58c95d457
@ -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…
x
Reference in New Issue
Block a user