From 27aed7a2355702a16d29dd6d5a259e78dfe6ed44 Mon Sep 17 00:00:00 2001 From: Fridolin Pokorny Date: Apr 04 2013 12:23:10 +0000 Subject: fixed segfault when info is NULL --- 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 - 1.0.32-2 +- fixed segfault when info is NULL + * Thu Apr 04 2013 Fridolin Pokorny - 1.0.32-1 - 1.0.32