Compare commits

...

1 Commits
master ... f20

Author SHA1 Message Date
Jiri Popelka 03b8867ec4 cups-browsed: Fixed a security bug in the remove_bad_chars() failing to
reliably filter out illegal characters. (upstream #1265)
2015-03-02 12:03:37 +01:00
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up cups-filters-1.0.53/utils/cups-browsed.c.orig cups-filters-1.0.53/utils/cups-browsed.c
--- cups-filters-1.0.53/utils/cups-browsed.c.orig 2014-04-24 22:52:34.000000000 +0200
+++ cups-filters-1.0.53/utils/cups-browsed.c 2015-03-02 11:55:01.029188474 +0100
@@ -627,6 +627,7 @@ remove_bad_chars(const char *str_orig, /
str[i] == '.' || str[i] == ','))) {
/* Letter or number, keep it */
havedash = 0;
+ str[j] = str[i];
} else {
/* Replace all other characters by a single '-' */
if (havedash == 1)

View File

@ -4,7 +4,7 @@
Summary: OpenPrinting CUPS filters and backends
Name: cups-filters
Version: 1.0.53
Release: 5%{?dist}
Release: 6%{?dist}
# For a breakdown of the licensing, see COPYING file
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
@ -23,6 +23,7 @@ Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{versio
Patch1: cups-filters-pdf-landscape.patch
Patch2: cups-filters-makefile.patch
Patch3: cups-filters-execmem.patch
Patch4: cups-filters-bug1265.patch
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
@ -123,6 +124,11 @@ This is the development package for OpenPrinting CUPS filters and backends.
# Don't use grep's -P switch in pstopdf as it needs execmem (bug #1079534).
%patch3 -p1 -b .execmem
# cups-browsed: Fixed a security bug in the remove_bad_chars()
# failing to reliably filter out illegal characters.
# https://bugs.linuxfoundation.org/show_bug.cgi?id=1265
%patch4 -p1 -b .bug1265
%build
# work-around Rpath
./autogen.sh
@ -248,6 +254,10 @@ fi
%{_libdir}/libfontembed.so
%changelog
* Mon Mar 02 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.53-6
cups-browsed: Fixed a security bug in the remove_bad_chars() failing to
reliably filter out illegal characters. (upstream #1265)
* Fri Jun 13 2014 Tim Waugh <twaugh@redhat.com> - 1.0.53-5
- Really fix execmem issue (bug #1079534).