Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
SDL
CVE-2019-7636.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2019-7636.patch of Package SDL
diff --git a/src/video/SDL_bmp.c b/src/video/SDL_bmp.c index 6f6dedf..9700500 100644 --- a/src/video/SDL_bmp.c +++ b/src/video/SDL_bmp.c @@ -241,6 +241,10 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc) if ( palette ) { 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 ( biSize == 12 ) { for ( i = 0; i < (int)biClrUsed; ++i ) {
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