rpms/perl-DBD-Pg/F-7 perl-DBD-1.49-segfault.patch, NONE, 1.1 perl-DBD-Pg.spec, 1.34, 1.35

Marcela Mašláňová (mmaslano) fedora-extras-commits at redhat.com
Tue Mar 11 15:39:30 UTC 2008


Author: mmaslano

Update of /cvs/pkgs/rpms/perl-DBD-Pg/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14687

Modified Files:
	perl-DBD-Pg.spec 
Added Files:
	perl-DBD-1.49-segfault.patch 
Log Message:
- #229065: double ?? in prepare causes seg fault on execute



perl-DBD-1.49-segfault.patch:

--- NEW FILE perl-DBD-1.49-segfault.patch ---
diff -up DBD-Pg-1.49/dbdimp.c.bleble DBD-Pg-1.49/dbdimp.c
--- DBD-Pg-1.49/dbdimp.c.bleble	2006-05-04 04:11:14.000000000 +0200
+++ DBD-Pg-1.49/dbdimp.c	2008-03-11 16:21:18.000000000 +0100
@@ -1542,6 +1542,7 @@ static int dbd_st_prepare_statement (sth
 	}
 	/* Construct the statement, with proper placeholders */
 	for (currseg=imp_sth->seg; NULL != currseg; currseg=currseg->nextseg) {
+		if (currseg->segment != NULL)
 		strcat(statement, currseg->segment);
 		if (currseg->placeholder) {
 			sprintf(strchr(statement, '\0'), "$%d", currseg->placeholder);


Index: perl-DBD-Pg.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-DBD-Pg/F-7/perl-DBD-Pg.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- perl-DBD-Pg.spec	5 Dec 2006 19:37:58 -0000	1.34
+++ perl-DBD-Pg.spec	11 Mar 2008 15:38:55 -0000	1.35
@@ -1,13 +1,14 @@
 Name:           perl-DBD-Pg
 Version:        1.49
-Release: 	3%{?dist}
+Release: 	4%{?dist}
 Summary:        A PostgresSQL interface for perl
 
 Group:          Development/Libraries
 License:        GPL or Artistic
 URL:            http://search.cpan.org/dist/DBD-Pg/
 Source0:     http://www.cpan.org/authors/id/D/DB/DBDPG/DBD-Pg-%{version}.tar.gz
-Patch:          perl-DBD-1.31-fixver.patch
+Patch0:         perl-DBD-1.31-fixver.patch
+Patch1:         perl-DBD-1.49-segfault.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  perl >= 1:5.6.1
@@ -23,6 +24,7 @@
 %prep
 %setup -q -n DBD-Pg-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -55,6 +57,9 @@
 
 
 %changelog
+* Tue Mar 10 2008 Marcela Maslanova <mmaslano at redhat.com> - 1.49-4
+- #229065: double ?? in prepare causes seg fault on execute
+
 * Tue Dec 06 2006 Robin Norwood <rnorwood at redhat.com> - 1.49-3
 - rebuild for new version of postgres.
 




More information about the fedora-extras-commits mailing list