aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl/0002-CVE-2019-7635.patch
blob: 01a111ccc4f2b4d23cb3d402885ab7c610631c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;