From b9b2a072b993412b4f8ae393210465893847e76e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 25 Jan 2022 18:35:20 -0600 Subject: gdk_pixbuf_new() - Clear the pixbuf's memory buffer to avoid returning uninitialized memory Fixes https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/199 --- gdk-pixbuf/gdk-pixbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdk-pixbuf') diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index 28a67b140..8bdd65035 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -631,7 +631,7 @@ gdk_pixbuf_new (GdkColorspace colorspace, if (rowstride <= 0) return NULL; - buf = g_try_malloc_n (height, rowstride); + buf = g_try_malloc0_n (height, rowstride); if (!buf) return NULL; -- cgit v1.2.1