[gdk-pixbuf: 1/2] gdk_pixbuf_new() - Clear the pixbuf's memory buffer to avoid returning uninitialized memory
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf: 1/2] gdk_pixbuf_new() - Clear the pixbuf's memory buffer to avoid returning uninitialized memory
- Date: Wed, 26 Jan 2022 01:29:04 +0000 (UTC)
commit b9b2a072b993412b4f8ae393210465893847e76e
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jan 25 18:35:20 2022 -0600
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(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]