diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-09-05 16:26:08 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-09-05 16:26:08 -0700 |
commit | 0cd5e05574453627bc9d5fba7bb9c6a6b2d3dd22 (patch) | |
tree | 79ffb4a27903621cce42dfd4d235aaf689f5d2d6 /com32/lib | |
parent | ef056e0b4ef526540bbbb6a1d58e2e26182d8295 (diff) | |
download | syslinux-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')
-rw-r--r-- | com32/lib/sys/vesa/background.c | 2 |
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); |