mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Avoid potential size overflow in 32 bit system in option size specification
This commit is contained in:
parent
e17bb92f69
commit
1f0136f2e5
1 changed files with 1 additions and 1 deletions
|
|
@ -894,7 +894,7 @@ int parse_option_size(const char* arg, uint64_t* out_size)
|
|||
char* e;
|
||||
|
||||
/* parse the number part */
|
||||
data_off_t size = strtoul(arg, &e, 10);
|
||||
uint64_t size = strtoull(arg, &e, 10);
|
||||
if (e == arg)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue