aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2_image/CVE-2017-14442.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/sdl2_image/CVE-2017-14442.patch')
-rw-r--r--main/sdl2_image/CVE-2017-14442.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/main/sdl2_image/CVE-2017-14442.patch b/main/sdl2_image/CVE-2017-14442.patch
deleted file mode 100644
index 6fa4524b40..0000000000
--- a/main/sdl2_image/CVE-2017-14442.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-
-# HG changeset patch
-# User Ryan C. Gordon <icculus@icculus.org>
-# Date 1516817527 18000
-# Node ID 37445f6180a8ca7a218ab9f9eaaeaf088b4f6c3a
-# Parent a1e9b624ca1033f893e93691802682bf36400f7a
-bmp: don't overflow palette buffer with bogus biClrUsed values.
-
-diff -r a1e9b624ca10 -r 37445f6180a8 IMG_bmp.c
---- a/IMG_bmp.c Wed Jan 24 13:02:04 2018 -0500
-+++ b/IMG_bmp.c Wed Jan 24 13:12:07 2018 -0500
-@@ -760,6 +760,11 @@
- if (biClrUsed == 0) {
- biClrUsed = 1 << biBitCount;
- }
-+ if (biClrUsed > SDL_arraysize(palette)) {
-+ IMG_SetError("Unsupported or incorrect biClrUsed field");
-+ was_error = SDL_TRUE;
-+ goto done;
-+ }
- for (i = 0; i < (int) biClrUsed; ++i) {
- SDL_RWread(src, &palette[i], 4, 1);
- }
-