diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-01-25 18:35:20 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-01-25 18:35:20 -0600 |
commit | b9b2a072b993412b4f8ae393210465893847e76e (patch) | |
tree | 865ff73d6b25502b933bf36d9f942b353b993cbc /gdk-pixbuf/gdk-pixbuf.c | |
parent | 0642a62317c51db5ae56a8aed4d1eaacdab308d1 (diff) | |
download | gdk-pixbuf-b9b2a072b993412b4f8ae393210465893847e76e.tar.gz |
gdk_pixbuf_new() - Clear the pixbuf's memory buffer to avoid returning uninitialized memory
Fixes https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/199
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |