rpms/system-config-printer/F-12 pycups-stack-overflow.patch, NONE, 1.1 system-config-printer.spec, 1.371, 1.372

Tim Waugh twaugh at fedoraproject.org
Wed May 19 15:39:48 UTC 2010


Author: twaugh

Update of /cvs/pkgs/rpms/system-config-printer/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv29388

Modified Files:
	system-config-printer.spec 
Added Files:
	pycups-stack-overflow.patch 
Log Message:
* Wed May 19 2010 Tim Waugh <twaugh at redhat.com> - 1.1.19-2
- Fixed stack overflow in cups.Connection.deletePrinterOptionDefault
  (bug #584991).


pycups-stack-overflow.patch:
 cupsconnection.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE pycups-stack-overflow.patch ---
diff -up pycups-1.9.50/cupsconnection.c.stack-overflow pycups-1.9.50/cupsconnection.c
--- pycups-1.9.50/cupsconnection.c.stack-overflow	2010-05-11 16:36:57.000000000 +0100
+++ pycups-1.9.50/cupsconnection.c	2010-05-19 16:28:17.894123769 +0100
@@ -2910,7 +2910,7 @@ Connection_deletePrinterOptionDefault (C
   char *name;
   PyObject *optionobj;
   char *option;
-  const char *const suffix = "-default";
+  const char const suffix[] = "-default";
   char *opt;
   ipp_t *request, *answer;
   int i;


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-12/system-config-printer.spec,v
retrieving revision 1.371
retrieving revision 1.372
diff -u -p -r1.371 -r1.372
--- system-config-printer.spec	18 May 2010 14:42:32 -0000	1.371
+++ system-config-printer.spec	19 May 2010 15:39:48 -0000	1.372
@@ -7,7 +7,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 1.1.19
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -15,6 +15,8 @@ Source0: http://cyberelk.net/tim/data/sy
 Source1: http://cyberelk.net/tim/data/pycups/pycups-%{pycups_version}.tar.bz2
 Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2
 
+Patch101: pycups-stack-overflow.patch
+
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
 BuildRequires: libsmbclient-devel >= 3.2
@@ -74,6 +76,10 @@ printers.
 %prep
 %setup -q -a 1 -a 2
 
+pushd pycups-%{pycups_version}
+%patch101 -p1 -b .stack-overflow
+popd
+
 %build
 %configure --with-udev-rules --with-polkit-1
 
@@ -191,6 +197,10 @@ rm -rf %buildroot
 exit 0
 
 %changelog
+* Wed May 19 2010 Tim Waugh <twaugh at redhat.com> - 1.1.19-2
+- Fixed stack overflow in cups.Connection.deletePrinterOptionDefault
+  (bug #584991).
+
 * Tue May 18 2010 Tim Waugh <twaugh at redhat.com> - 1.1.19-1
 - Updated pycups to 1.9.50.
 - Updated pysmbc to 1.0.7.



More information about the scm-commits mailing list