[cups-filters] fixed segfault when info is NULL

FridolĂ­n PokornĂ˝ fpokorny at fedoraproject.org
Thu Apr 4 12:42:50 UTC 2013


commit 27aed7a2355702a16d29dd6d5a259e78dfe6ed44
Author: Fridolin Pokorny <fpokorny at redhat.com>
Date:   Thu Apr 4 14:17:22 2013 +0200

    fixed segfault when info is NULL

 cups-filters-1.0.32-null-info.patch |   14 ++++++++++++++
 cups-filters.spec                   |    7 ++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/cups-filters-1.0.32-null-info.patch b/cups-filters-1.0.32-null-info.patch
new file mode 100644
index 0000000..13ce560
--- /dev/null
+++ b/cups-filters-1.0.32-null-info.patch
@@ -0,0 +1,14 @@
+diff -upr cups-filters-1.0.32_orig/utils/cups-browsed.c cups-filters-1.0.32_workk/utils/cups-browsed.c
+--- cups-filters-1.0.32_orig/utils/cups-browsed.c	2013-04-04 13:41:34.839126301 +0200
++++ cups-filters-1.0.32_work/utils/cups-browsed.c	2013-04-04 13:42:26.150339923 +0200
+@@ -698,7 +698,7 @@ void generate_local_queue(const char *ho
+ 	    port, remote_queue);
+ 
+     p = create_local_queue (local_queue_name, uri, remote_host,
+-			    name, type, domain);
++			    name ? name : "", type, domain);
+     free (uri);
+   }
+ 
+Only in cups-filters-1.0.32_workk/utils: .cups-browsed.c.swp
+Only in cups-filters-1.0.32_workk/utils: tags
diff --git a/cups-filters.spec b/cups-filters.spec
index 91d656b..308bc15 100644
--- a/cups-filters.spec
+++ b/cups-filters.spec
@@ -4,7 +4,7 @@
 Summary: OpenPrinting CUPS filters and backends
 Name:    cups-filters
 Version: 1.0.32
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 # For a breakdown of the licensing, see COPYING file
 # GPLv2:   filters: commandto*, imagetoraster, pdftops, rasterto*,
@@ -21,6 +21,7 @@ Group:   System Environment/Base
 Url:     http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
 Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
 Source1: cups-browsed.service
+Patch1: cups-filters-1.0.32-null-info.patch
 
 Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
 
@@ -88,6 +89,7 @@ This is the development package for OpenPrinting CUPS filters and backends.
 
 %prep
 %setup -q
+%patch1 -p1 -b .null-info
 
 %build
 # work-around Rpath
@@ -193,6 +195,9 @@ fi
 %{_libdir}/libfontembed.so
 
 %changelog
+* Thu Apr 04 2013 Fridolin Pokorny <fpokorny at redhat.com> - 1.0.32-2
+- fixed segfault when info is NULL
+
 * Thu Apr 04 2013 Fridolin Pokorny <fpokorny at redhat.com> - 1.0.32-1
 - 1.0.32
 


More information about the scm-commits mailing list