aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl/0002-CVE-2019-7635.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-08-11 00:31:02 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-08-14 12:50:55 +0000
commitcdec0ceb3552865b567691908d0275151e5bef0e (patch)
treede076c3b080890a84ae682ae3a43def2b23f9d94 /main/sdl/0002-CVE-2019-7635.patch
parent8b2c14f6223c92deeb0513790b984e92a4a1d064 (diff)
downloadaports-cdec0ceb3552865b567691908d0275151e5bef0e.tar.gz
aports-cdec0ceb3552865b567691908d0275151e5bef0e.tar.bz2
aports-cdec0ceb3552865b567691908d0275151e5bef0e.tar.xz
main/sdl: fix multiple vulnerabilities
Diffstat (limited to 'main/sdl/0002-CVE-2019-7635.patch')
-rw-r--r--main/sdl/0002-CVE-2019-7635.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/sdl/0002-CVE-2019-7635.patch b/main/sdl/0002-CVE-2019-7635.patch
new file mode 100644
index 0000000000..01a111ccc4
--- /dev/null
+++ b/main/sdl/0002-CVE-2019-7635.patch
@@ -0,0 +1,21 @@
+diff -r 19d8c3b9c251 -r 08f3b4992538 src/video/SDL_bmp.c
+--- a/src/video/SDL_bmp.c Mon Feb 18 07:48:23 2019 -0800
++++ b/src/video/SDL_bmp.c Sat Mar 16 18:35:11 2019 -0700
+@@ -163,6 +163,14 @@
+ ExpandBMP = biBitCount;
+ biBitCount = 8;
+ break;
++ case 2:
++ case 3:
++ case 5:
++ case 6:
++ case 7:
++ SDL_SetError("%d-bpp BMP images are not supported", biBitCount);
++ was_error = SDL_TRUE;
++ goto done;
+ default:
+ ExpandBMP = 0;
+ break;
+
+
+