Bugzilla – Bug 1134135
SDL_GetWindowSurface returns NULL pointer
Last modified: 2019-06-27 10:31:09 UTC
After last update of libSDL2-2_0-0 to version 2.0.8-lp150.2.3.1 function SDL_GetWindowSurface returns NULL pointer. You can reproduce problem with this example from SDL2 documentation: https://wiki.libsdl.org/SDL_GetWindowSurface (just add assert after "screen" initialization). I think that probably source of this bug is incorrect patch of another bug: 1124825 ( https://build.opensuse.org/package/view_file/openSUSE:Leap:15.0:Update/SDL2/CVE-2019-7637.patch?expand=1 ). surface->pitch = SDL_CalculatePitch(format, width); + if (!surface->pitch) + { + return NULL; + } SDL_SetClipRect(surface, NULL); SDL_CalculatePitch returns 0 because passed width is equal to 0 (this is hardcoded in SDL_CreateRGBSurfaceFrom).
SUSE-SU-2019:1605-1: An update that solves one vulnerability and has one errata is now available. Category: security (moderate) Bug References: 1124825,1134135 CVE References: CVE-2019-7637 Sources used: SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src): SDL2-2.0.8-3.12.5 SUSE Linux Enterprise Module for Desktop Applications 15-SP1 (src): SDL2-2.0.8-3.12.5 SUSE Linux Enterprise Module for Desktop Applications 15 (src): SDL2-2.0.8-3.12.5 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
*** Bug 1137386 has been marked as a duplicate of this bug. ***
released
openSUSE-SU-2019:1633-1: An update that solves one vulnerability and has one errata is now available. Category: security (moderate) Bug References: 1124825,1134135 CVE References: CVE-2019-7637 Sources used: openSUSE Leap 15.1 (src): SDL2-2.0.8-lp151.4.3.1
openSUSE-SU-2019:1632-1: An update that solves one vulnerability and has one errata is now available. Category: security (moderate) Bug References: 1124825,1134135 CVE References: CVE-2019-7637 Sources used: openSUSE Leap 15.0 (src): SDL2-2.0.8-lp150.2.6.1