Skip to content

Commit

Permalink
Fixed bug 4839 - Read of uninitialized memory in Win32_ResizeWindowShape
Browse files Browse the repository at this point in the history
(Thanks!)
  • Loading branch information
1bsyl committed Oct 23, 2019
1 parent 758badf commit d5d34de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/windows/SDL_windowsshape.c
Expand Up @@ -34,6 +34,7 @@ Win32_CreateShaper(SDL_Window * window) {
result->mode.mode = ShapeModeDefault;
result->mode.parameters.binarizationCutoff = 1;
result->userx = result->usery = 0;
result->hasshape = SDL_FALSE;
result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData));
((SDL_ShapeData*)result->driverdata)->mask_tree = NULL;
/* Put some driver-data here. */
Expand Down

0 comments on commit d5d34de

Please sign in to comment.