fixed segfault when info is NULL

This commit is contained in:
Fridolin Pokorny 2013-04-04 14:17:22 +02:00
parent 99db87dd35
commit 27aed7a235
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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@redhat.com> - 1.0.32-2
- fixed segfault when info is NULL
* Thu Apr 04 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.32-1
- 1.0.32