[Commits] [SCM] claws branch, master, updated. 3.17.8-25-g67de7a4db

paul at claws-mail.org paul at claws-mail.org
Tue Mar 2 10:36:30 CET 2021


The branch, master has been updated
       via  67de7a4db562991a672ea426909f58f5d528d071 (commit)
      from  5d552a3e4677d8c92bc86d2d95dd84622afbf2c0 (commit)

Summary of changes:
 src/gtk/gtkutils.c | 3 +++
 1 file changed, 3 insertions(+)


- Log -----------------------------------------------------------------
commit 67de7a4db562991a672ea426909f58f5d528d071
Author: paul <paul at claws-mail.org>
Date:   Tue Mar 2 09:34:07 2021 +0000

    fix debian bug #983778, 'Segfault on selecting empty 'X-Face' custom header'

diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c
index 60bf674fc..7ffcbb371 100644
--- a/src/gtk/gtkutils.c
+++ b/src/gtk/gtkutils.c
@@ -1089,6 +1089,9 @@ GtkWidget *xface_get_from_header(const gchar *o_xface)
 	static gchar *xpm_xface[XPM_XFACE_HEIGHT];
 	static gboolean xpm_xface_init = TRUE;
 	gchar xface[2048];
+	
+	cm_return_if_fail(sizeof(xface) < 0);
+	
 	strncpy(xface, o_xface, sizeof(xface) - 1);
 	xface[sizeof(xface) - 1] = '\0';
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list