how-lix-os-pkgs/sdl/default/patches-available/1100-CVE-2019-7635.patch

22 lines
461 B
Diff

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;