Package: gnome-font-viewer
Version: 3.14.0-1
User: [email protected]
Usertags: origin-ubuntu vivid ubuntu-patch

Browsing for example one of the subdir in /usr/share/icons currently
lead to a font thumbnailer segfaults, it's due to an unitialized
variable, backporting that git commit fixes it
diff -Nru gnome-font-viewer-3.14.0/debian/changelog gnome-font-viewer-3.14.0/debian/changelog
--- gnome-font-viewer-3.14.0/debian/changelog	2014-09-23 09:20:37.000000000 +0200
+++ gnome-font-viewer-3.14.0/debian/changelog	2015-03-26 09:54:28.000000000 +0100
@@ -1,3 +1,9 @@
+gnome-font-viewer (3.14.0-2) unstable; urgency=medium
+
+  * 
+
+ -- Sebastien Bacher <[email protected]>  Thu, 26 Mar 2015 09:54:17 +0100
+
 gnome-font-viewer (3.14.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru gnome-font-viewer-3.14.0/debian/patches/git_variable_init.patch gnome-font-viewer-3.14.0/debian/patches/git_variable_init.patch
--- gnome-font-viewer-3.14.0/debian/patches/git_variable_init.patch	1970-01-01 01:00:00.000000000 +0100
+++ gnome-font-viewer-3.14.0/debian/patches/git_variable_init.patch	2015-03-26 09:59:34.000000000 +0100
@@ -0,0 +1,28 @@
+From 9d4ec7300bbe57c2ebf36d292f6b574f27325fbc Mon Sep 17 00:00:00 2001
+From: Matthias Clasen <[email protected]>
+Date: Thu, 13 Nov 2014 14:25:09 -0500
+Subject: Fix an uninitialized variable
+
+The str variable may be freed without ever having been set
+here, if we take one of the early gotos. This is showing up
+as a frequent crash in Fedoras retrace server:
+
+https://bugzilla.redhat.com/show_bug.cgi?id=1148522
+
+diff --git a/src/font-thumbnailer.c b/src/font-thumbnailer.c
+index 3e76323..57be150 100644
+--- a/src/font-thumbnailer.c
++++ b/src/font-thumbnailer.c
+@@ -181,7 +181,7 @@ main (int argc,
+     cairo_t *cr;
+     cairo_text_extents_t text_extents;
+     cairo_font_face_t *font;
+-    gchar *str;
++    gchar *str = NULL;
+     gdouble scale, scale_x, scale_y;
+ 
+     const GOptionEntry options[] = {
+-- 
+cgit v0.10.2
+
+
diff -Nru gnome-font-viewer-3.14.0/debian/rules gnome-font-viewer-3.14.0/debian/rules
--- gnome-font-viewer-3.14.0/debian/rules	2012-03-13 00:14:22.000000000 +0100
+++ gnome-font-viewer-3.14.0/debian/rules	2015-03-26 10:05:16.000000000 +0100
@@ -3,6 +3,7 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/gnome.mk
 include /usr/share/cdbs/1/rules/utils.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 include /usr/share/gnome-pkg-tools/1/rules/gnome-version.mk
 -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

Reply via email to