[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-42-gad31bc5b6

paul at claws-mail.org paul at claws-mail.org
Tue Mar 2 10:34:11 CET 2021


The branch, gtk3 has been updated
       via  ad31bc5b69a542274bcf1e23726442caf8ee84b0 (commit)
      from  d6f0b033089779abd24fd45e407d8b88144d1926 (commit)

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


- Log -----------------------------------------------------------------
commit ad31bc5b69a542274bcf1e23726442caf8ee84b0
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 b8cdae049..d2fe4344f 100644
--- a/src/gtk/gtkutils.c
+++ b/src/gtk/gtkutils.c
@@ -1112,6 +1112,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