rpms/perl-DBD-Pg/F-8 perl-DBD-1.49-segfault.patch, NONE, 1.1 perl-DBD-Pg.spec, 1.37, 1.38
Marcela Mašláňová (mmaslano)
fedora-extras-commits at redhat.com
Tue Mar 11 15:28:11 UTC 2008
Author: mmaslano
Update of /cvs/pkgs/rpms/perl-DBD-Pg/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13891
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-8/perl-DBD-Pg.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- perl-DBD-Pg.spec 15 Oct 2007 19:30:49 -0000 1.37
+++ perl-DBD-Pg.spec 11 Mar 2008 15:27:35 -0000 1.38
@@ -1,13 +1,14 @@
Name: perl-DBD-Pg
Version: 1.49
-Release: 5%{?dist}.1
+Release: 5%{?dist}.2
Summary: A PostgreSQL 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
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@@ -57,6 +59,9 @@
%changelog
+* Tue Mar 10 2008 Marcela Maslanova <mmaslano at redhat.com> - 1.49-5.2
+- #229065: double ?? in prepare causes seg fault on execute
+
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa at redhat.com> - 1.49-5.1
- add BR: perl(ExtUtils::MakeMaker)
More information about the fedora-extras-commits
mailing list