aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/vesa/background.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-09-05 16:26:08 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-09-05 16:26:08 -0700
commit0cd5e05574453627bc9d5fba7bb9c6a6b2d3dd22 (patch)
tree79ffb4a27903621cce42dfd4d235aaf689f5d2d6 /com32/lib/sys/vesa/background.c
parentef056e0b4ef526540bbbb6a1d58e2e26182d8295 (diff)
downloadsyslinux-0cd5e05574453627bc9d5fba7bb9c6a6b2d3dd22.tar.gz
syslinux-0cd5e05574453627bc9d5fba7bb9c6a6b2d3dd22.tar.xz
syslinux-0cd5e05574453627bc9d5fba7bb9c6a6b2d3dd22.zip
Set saner limits, since tinyjpeg will actually decode the whole image
Diffstat (limited to 'com32/lib/sys/vesa/background.c')
-rw-r--r--com32/lib/sys/vesa/background.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/vesa/background.c b/com32/lib/sys/vesa/background.c
index 4e7f174a..026cbc75 100644
--- a/com32/lib/sys/vesa/background.c
+++ b/com32/lib/sys/vesa/background.c
@@ -181,7 +181,7 @@ static int read_jpeg_file(FILE *fp, uint8_t *header, int len)
goto err;
tinyjpeg_get_size(jdec, &width, &height);
- if (width > 65536 || height > 65536)
+ if (width > 4096 || height > 4096)
goto err;
tinyjpeg_decode(jdec, TINYJPEG_FMT_BGRA32);