SDL/CVE-2019-7635_2.patch
2019-11-19 11:57:04 +08:00

18 lines
451 B
Diff

--- a/src/video/SDL_bmp.c 2012-01-19 14:30:06.000000000 +0800
+++ b/src/video/SDL_bmp.c 2019-04-22 11:34:08.793000000 +0800
@@ -163,6 +163,14 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops
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;