summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2022-01-26 01:29:04 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2022-01-26 01:29:04 +0000
commit719f180b23165a984226abab3ce228c88b0ee7b2 (patch)
tree865ff73d6b25502b933bf36d9f942b353b993cbc
parent0642a62317c51db5ae56a8aed4d1eaacdab308d1 (diff)
parentb9b2a072b993412b4f8ae393210465893847e76e (diff)
downloadgdk-pixbuf-719f180b23165a984226abab3ce228c88b0ee7b2.tar.gz
Merge branch 'pixbuf-uninitialized-memory' into 'master'
gdk_pixbuf_new() - Clear the pixbuf's memory buffer to avoid returning uninitialized memory Closes #199 See merge request GNOME/gdk-pixbuf!128
-rw-r--r--gdk-pixbuf/gdk-pixbuf.c2
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;