From 671ddc824606966a797c995e66e2c534343b56bb Mon Sep 17 00:00:00 2001 From: Icarus Sparry Date: Fri, 30 Mar 2018 10:28:44 -0700 Subject: [PATCH] Fix a "preposterous check 2*10^12 rather than 2*10^9 Signed-off-by: Icarus Sparry --- src/manifest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifest.c b/src/manifest.c index 0105eb6a..b323817c 100644 --- a/src/manifest.c +++ b/src/manifest.c @@ -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;