Skip to content

Commit

Permalink
IMG_bmp.c (LoadBMP_RW): reject bmp files with zero bpp.
Browse files Browse the repository at this point in the history
fix imported for https://bugzilla.libsdl.org/show_bug.cgi?id=4536
from the SDL tree.
  • Loading branch information
sezero committed Sep 3, 2019
1 parent 56af496 commit e83f98e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IMG_bmp.c
Expand Up @@ -297,6 +297,7 @@ static SDL_Surface *LoadBMP_RW (SDL_RWops *src, int freesrc)
ExpandBMP = biBitCount;
biBitCount = 8;
break;
case 0:
case 2:
case 3:
case 5:
Expand Down

0 comments on commit e83f98e

Please sign in to comment.