From 64958b4d806cf0c92db848c1badb7f83f304972b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 18 Jan 2019 07:47:38 -0500 Subject: [PATCH] icon validator: Fix an off-by-one I meant to allow 16 as a size limit. --- icon-validator/validate-icon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icon-validator/validate-icon.c b/icon-validator/validate-icon.c index c85f1bef..fe17067f 100644 --- a/icon-validator/validate-icon.c +++ b/icon-validator/validate-icon.c @@ -76,14 +76,14 @@ main (int argc, char *argv[]) } width = g_ascii_strtoll (argv[1], NULL, 10); - if (width <= 16 || width > 4096) + if (width < 16 || width > 4096) { g_printerr ("Bad width limit: %s\n", argv[1]); return 1; } height = g_ascii_strtoll (argv[2], NULL, 10); - if (height <= 16 || height > 4096) + if (height < 16 || height > 4096) { g_printerr ("Bad height limit: %s\n", argv[2]); return 1;