mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-04 23:25:54 -04:00
Merge pull request #2610 from matthiasclasen/icon-size-limit
icon validator: Fix an off-by-one
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user