rpms/hplip/F-12 hplip-openPPD.patch,NONE,1.1 hplip.spec,1.264,1.265
Jiří Popelka
jpopelka at fedoraproject.org
Wed May 12 15:44:13 UTC 2010
- Previous message: rpms/cscope/F-13 .cvsignore, 1.4, 1.5 cscope.spec, 1.39, 1.40 sources, 1.5, 1.6 cscope-15.6-incdir-overflow.patch, 1.1, NONE cscope-15.6-qrebuild.patch, 1.1, NONE cscope-15.6-sigwinch-linemode.patch, 1.1, NONE
- Next message: rpms/hplip/F-13 hplip-openPPD.patch,NONE,1.1 hplip.spec,1.277,1.278
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jpopelka
Update of /cvs/pkgs/rpms/hplip/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv15367
Modified Files:
hplip.spec
Added Files:
hplip-openPPD.patch
Log Message:
* Wed May 12 2010 Jiri Popelka <jpopelka at redhat.com> - 3.10.2-10
- Prevent segfault in cupsext when opening PPD file (bug #572775).
hplip-openPPD.patch:
cupsext.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
--- NEW FILE hplip-openPPD.patch ---
diff -up hplip-3.10.2/prnt/cupsext/cupsext.c.openPPD hplip-3.10.2/prnt/cupsext/cupsext.c
--- hplip-3.10.2/prnt/cupsext/cupsext.c.openPPD 2010-02-25 00:04:58.000000000 +0100
+++ hplip-3.10.2/prnt/cupsext/cupsext.c 2010-03-17 19:54:19.000000000 +0100
@@ -1221,9 +1221,18 @@ PyObject * openPPD( PyObject * self, PyO
return Py_BuildValue( "" ); // None
}
- g_ppd_file = cupsGetPPD( ( const char * ) printer );
+ if ( ( g_ppd_file = cupsGetPPD( ( const char * ) printer ) ) == NULL )
+ {
+ goto bailout;
+ }
+
+ if ( ( file = fopen( g_ppd_file, "r" )) == NULL )
+ {
+ unlink(g_ppd_file);
+ g_ppd_file = NULL;
+ goto bailout;
+ }
- file = fopen( g_ppd_file, "r" );
ppd = ppdOpen( file );
ppdLocalize( ppd );
fclose( file );
Index: hplip.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hplip/F-12/hplip.spec,v
retrieving revision 1.264
retrieving revision 1.265
diff -u -p -r1.264 -r1.265
--- hplip.spec 11 May 2010 13:54:46 -0000 1.264
+++ hplip.spec 12 May 2010 15:44:12 -0000 1.265
@@ -1,7 +1,7 @@
Summary: HP Linux Imaging and Printing Project
Name: hplip
Version: 3.10.2
-Release: 9%{?dist}
+Release: 10%{?dist}
License: GPLv2+ and MIT
Group: System Environment/Daemons
Conflicts: system-config-printer < 0.6.132
@@ -30,6 +30,8 @@ Patch16: hplip-bad-low-ink-warning.patch
Patch17: hplip-skip-blank-lines.patch
Patch18: hplip-dbglog-newline.patch
Patch19: hplip-no-system-tray.patch
+Patch20: hplip-openPPD.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(pre): /sbin/service
@@ -170,6 +172,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
# Wait for max 30s to see if a system tray becomes available (bug #569969).
%patch19 -p1 -b .no-system-tray
+# Prevent segfault in cupsext when opening PPD file (bug #572775).
+%patch20 -p1 -b .openPPD
+
sed -i.duplex-constraints \
-e 's,\(UIConstraints.* \*Duplex\),//\1,' \
prnt/drv/hpcups.drv.in
@@ -390,6 +395,9 @@ fi
%{_bindir}/hpcups-update-ppds &>/dev/null ||:
%changelog
+* Wed May 12 2010 Jiri Popelka <jpopelka at redhat.com> - 3.10.2-10
+- Prevent segfault in cupsext when opening PPD file (bug #572775).
+
* Tue May 11 2010 Jiri Popelka <jpopelka at redhat.com> - 3.10.2-9
- Wait for max 30s to see if a system tray becomes available (bug #569969).
- Previous message: rpms/cscope/F-13 .cvsignore, 1.4, 1.5 cscope.spec, 1.39, 1.40 sources, 1.5, 1.6 cscope-15.6-incdir-overflow.patch, 1.1, NONE cscope-15.6-qrebuild.patch, 1.1, NONE cscope-15.6-sigwinch-linemode.patch, 1.1, NONE
- Next message: rpms/hplip/F-13 hplip-openPPD.patch,NONE,1.1 hplip.spec,1.277,1.278
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list