commit | d2cf99bedd4b07a8eebac473f177d50a4b59ae41 | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Fri Oct 07 17:30:21 2016 -0700 |
committer | Sam Lantinga <slouken@libsdl.org> | Fri Oct 07 17:30:21 2016 -0700 |
tree | bf9d8528c3d8965fadfc2a6de6f6384beade009d | |
parent | 1bd4656a5c5516b4759800ab0b8495c8ecf5350c [diff] |
Fixed bug 2957 - De-reference rz_src without NULL check in SDLgfx_rotateSurface function Nitz In function SDLgfx_rotateSurface: rz_dst = SDL_CreateRGBSurface(SDL_SWSURFACE, dstwidth, dstheight + GUARD_ROWS, rz_src->format->Rmask, rz_src->format->Gmask, rz_src->format->Bmask, rz_src->format->Amask); Here rz_src get De-referenced without NULL check, which is risky.