[cups] Do not apply unary exclamation mark to va_list (bug #957737).

Jiří Popelka jpopelka at fedoraproject.org
Mon Apr 29 14:08:18 UTC 2013


commit 47fb896364e1a8d8109748d5dfb16e79feaab4dd
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Mon Apr 29 16:07:09 2013 +0200

    Do not apply unary exclamation mark to va_list (bug #957737).

 cups-17b1-va_list.patch |   21 +++++++++++++++++++++
 cups.spec               |    9 ++++++++-
 2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/cups-17b1-va_list.patch b/cups-17b1-va_list.patch
new file mode 100644
index 0000000..89949ad
--- /dev/null
+++ b/cups-17b1-va_list.patch
@@ -0,0 +1,21 @@
+diff -up cups-1.7b1/cups/ipp.c.va_list cups-1.7b1/cups/ipp.c
+--- cups-1.7b1/cups/ipp.c.va_list	2013-03-14 19:45:49.000000000 +0100
++++ cups-1.7b1/cups/ipp.c	2013-04-29 15:45:52.680403846 +0200
+@@ -1210,7 +1210,7 @@ ippAddStringfv(ipp_t      *ipp,		/* I -
+       group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE ||
+       (value_tag < IPP_TAG_TEXT && value_tag != IPP_TAG_TEXTLANG &&
+        value_tag != IPP_TAG_NAMELANG) || value_tag > IPP_TAG_MIMETYPE ||
+-      !format || !ap)
++      !format)
+     return (NULL);
+ 
+   if ((value_tag == IPP_TAG_TEXTLANG || value_tag == IPP_TAG_NAMELANG)
+@@ -4449,7 +4449,7 @@ ippSetStringfv(ipp_t           *ipp,	/*
+   if (!ipp || !attr || !*attr ||
+       (value_tag < IPP_TAG_TEXT && value_tag != IPP_TAG_TEXTLANG &&
+        value_tag != IPP_TAG_NAMELANG) || value_tag > IPP_TAG_MIMETYPE ||
+-      !format || !ap)
++      !format)
+     return (0);
+ 
+  /*
diff --git a/cups.spec b/cups.spec
index d20768e..c6f5b0f 100644
--- a/cups.spec
+++ b/cups.spec
@@ -14,7 +14,7 @@ Summary: CUPS printing system
 Name: cups
 Epoch: 1
 Version: 1.7
-Release: 0.1.%{prever}%{?dist}
+Release: 0.2.%{prever}%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Url: http://www.cups.org/
@@ -58,6 +58,7 @@ Patch24: cups-ricoh-deviceid-oid.patch
 Patch25: cups-systemd-socket.patch
 Patch26: cups-lpd-manpage.patch
 Patch27: cups-avahi-address.patch
+Patch28: cups-17b1-va_list.patch
 
 Patch100: cups-lspp.patch
 
@@ -228,6 +229,9 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
 # Use IP address when resolving DNSSD URIs (bug #948288).
 %patch27 -p1 -b .avahi-address
 
+# do not apply unary exclamation mark to va_list (bug #957737).
+%patch28 -p1 -b .va_list
+
 %if %lspp
 # LSPP support.
 %patch100 -p1 -b .lspp
@@ -624,6 +628,9 @@ rm -f %{cups_serverbin}/backend/smb
 %{_mandir}/man5/ipptoolfile.5.gz
 
 %changelog
+* Mon Apr 29 2013 Jiri Popelka <jpopelka at redhat.com> - 1:1.7-0.2.b1
+- Do not apply unary exclamation mark to va_list (bug #957737).
+
 * Fri Apr 19 2013 Jiri Popelka <jpopelka at redhat.com> - 1:1.7-0.1.b1
 - 1.7b1
 - use _tmpfilesdir macro


More information about the scm-commits mailing list