From d5d34de4dbc9bf4696b7514c92fe2b48f7263f52 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Wed, 23 Oct 2019 09:17:53 +0200 Subject: [PATCH] Fixed bug 4839 - Read of uninitialized memory in Win32_ResizeWindowShape (Thanks!) --- src/video/windows/SDL_windowsshape.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/windows/SDL_windowsshape.c b/src/video/windows/SDL_windowsshape.c index e013a7492..b533fd367 100644 --- a/src/video/windows/SDL_windowsshape.c +++ b/src/video/windows/SDL_windowsshape.c @@ -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. */