From 5dfe5fac1b55836f07607310cd4df90e65099c3a Mon Sep 17 00:00:00 2001 From: Jimmy Date: Fri, 12 Jan 2024 07:46:44 -0800 Subject: [PATCH] GUACAMOLE-1900: Fixed a segfault issue related to the uninitialized memory when resizing the browser window. --- src/common/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/surface.c b/src/common/surface.c index 9334f0ce..c1a9c532 100644 --- a/src/common/surface.c +++ b/src/common/surface.c @@ -1324,7 +1324,7 @@ void guac_common_surface_resize(guac_common_surface* surface, int w, int h) { /* Allocate completely new heat map (can safely discard old stats) */ guac_mem_free(surface->heat_map); - surface->heat_map = guac_mem_alloc(heat_width, heat_height, + surface->heat_map = guac_mem_zalloc(heat_width, heat_height, sizeof(guac_common_surface_heat_cell)); /* Resize dirty rect to fit new surface dimensions */