aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/vesa/background.c
diff options
context:
space:
mode:
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);