diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2022-01-26 01:29:04 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-01-26 01:29:04 +0000 |
commit | 719f180b23165a984226abab3ce228c88b0ee7b2 (patch) | |
tree | 865ff73d6b25502b933bf36d9f942b353b993cbc | |
parent | 0642a62317c51db5ae56a8aed4d1eaacdab308d1 (diff) | |
parent | b9b2a072b993412b4f8ae393210465893847e76e (diff) | |
download | gdk-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.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; |