mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-11-22 07:33:06 +00:00
Fix a "preposterous check
2*10^12 rather than 2*10^9 Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
This commit is contained in:
committed by
icarus-sparry
parent
144cc60987
commit
671ddc8246
+1
-1
@@ -258,7 +258,7 @@ static struct manifest *manifest_from_file(int version, char *component, bool he
|
||||
}
|
||||
if (strncmp(line, "contentsize:", 12) == 0) {
|
||||
contentsize = strtoull(c, NULL, 10);
|
||||
if (contentsize > 2000000000) {
|
||||
if (contentsize > 2000000000000UL) {
|
||||
fprintf(stderr, "Error: preposterous (%" PRIu64 ") size of files in %s Manifest, more than 2TB skipping\n",
|
||||
contentsize, component);
|
||||
goto err_close;
|
||||
|
||||
Reference in New Issue
Block a user