fix: boundary check in parse_uint
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ static unsigned int parse_uint(const char *arg, const char *value) {
|
|||||||
|
|
||||||
tmp_value = (unsigned long long)atoll(value);
|
tmp_value = (unsigned long long)atoll(value);
|
||||||
|
|
||||||
if (tmp_value >= UINT_MAX) {
|
if (tmp_value > UINT_MAX) {
|
||||||
invalid_value(arg, value);
|
invalid_value(arg, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user