SDL_bmp.c: reject bmp files with zero bpp SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 03 Sep 2019 23:00:00 +0300
branchSDL-1.2
changeset 1305313b0e1be3ca2
parent 13051 08ae4fcfa2e3
child 13054 d07097a0e57e
SDL_bmp.c: reject bmp files with zero bpp

Fixes: https://bugzilla.libsdl.org/show_bug.cgi?id=4536
(2.0 commit: https://hg.libsdl.org/SDL/rev/6203d73874ab)
src/video/SDL_bmp.c
     1.1 --- a/src/video/SDL_bmp.c	Tue Sep 03 16:49:46 2019 +0100
     1.2 +++ b/src/video/SDL_bmp.c	Tue Sep 03 23:00:00 2019 +0300
     1.3 @@ -168,6 +168,7 @@
     1.4  			ExpandBMP = biBitCount;
     1.5  			biBitCount = 8;
     1.6  			break;
     1.7 +		case 0:
     1.8  		case 2:
     1.9  		case 3:
    1.10  		case 5: