Avoid potential size overflow in 32 bit system in option size specification

This commit is contained in:
Andrea Mazzoleni 2026-05-21 11:31:11 +02:00
parent e17bb92f69
commit 1f0136f2e5

View file

@ -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;