Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
SDL2.12372
CVE-2019-7636.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2019-7636.patch of Package SDL2.12372
diff --git a/src/video/SDL_bmp.c b/src/video/SDL_bmp.c index 78a9904..bf29f78 100644 --- a/src/video/SDL_bmp.c +++ b/src/video/SDL_bmp.c @@ -321,6 +321,10 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc) SDL_assert(biBitCount <= 8); if (biClrUsed == 0) { biClrUsed = 1 << biBitCount; + } else if ( biClrUsed > (1 << biBitCount) ) { + SDL_SetError("BMP file has an invalid number of colors"); + was_error = SDL_TRUE; + goto done; } if ((int) biClrUsed > palette->ncolors) { SDL_Color *colors;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor