mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue