From 112a5e038f0646eae5ae314988ec074433d2b365 Mon Sep 17 00:00:00 2001 From: Gabriele Barbero Date: Fri, 5 Dec 2025 19:13:01 +0100 Subject: [PATCH] ZDI-CAN-28158: use g_malloc0 instead of g_malloc To avoid accessing uninitialized memory, replace calls to g_malloc with g_malloc0 which initializes the allocated memory to zero. --- plug-ins/common/file-pnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/common/file-pnm.c b/plug-ins/common/file-pnm.c index 9d349e967e..65619be59d 100644 --- a/plug-ins/common/file-pnm.c +++ b/plug-ins/common/file-pnm.c @@ -693,7 +693,7 @@ load_image (GFile *file, return NULL; /* allocate the necessary structures */ - pnminfo = g_new (PNMInfo, 1); + pnminfo = g_new0 (PNMInfo, 1); pnminfo->tupltype = NULL;