renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
325 stars 63 forks source link

Add more error checking in pygame_sdl2.surface #120

Closed uyjulian closed 4 years ago

uyjulian commented 4 years ago

Data abort or segmentation fault may occur in case of memory allocation failure.
Add checks to prevent data abort or segmentation fault due to accessing a null pointer.