mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Vault3991 Fix lower bound check (#13727)
* code scanning alerts changes * adding changelog * fixing lower bound check
This commit is contained in:
@@ -377,7 +377,7 @@ func (i *uintValue) Set(s string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if v > 0 && v <= math.MaxUint {
|
if v >= 0 && v <= math.MaxUint {
|
||||||
*i.target = uint(v)
|
*i.target = uint(v)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user