pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/p5-DBI



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Oct 14 07:08:58 UTC 2021

Modified Files:
        pkgsrc/databases/p5-DBI: Makefile distinfo
Added Files:
        pkgsrc/databases/p5-DBI/patches: patch-lib_DBD_File.pm

Log Message:
p5-DBI: fix CVE-2014-10402

Bump PKGREVISION


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 pkgsrc/databases/p5-DBI/Makefile
cvs rdiff -u -r1.53 -r1.54 pkgsrc/databases/p5-DBI/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/p5-DBI/patches/patch-lib_DBD_File.pm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/p5-DBI/Makefile
diff -u pkgsrc/databases/p5-DBI/Makefile:1.86 pkgsrc/databases/p5-DBI/Makefile:1.87
--- pkgsrc/databases/p5-DBI/Makefile:1.86       Mon May 24 19:49:34 2021
+++ pkgsrc/databases/p5-DBI/Makefile    Thu Oct 14 07:08:58 2021
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.86 2021/05/24 19:49:34 wiz Exp $
+# $NetBSD: Makefile,v 1.87 2021/10/14 07:08:58 wiz Exp $
 
 DISTNAME=      DBI-1.643
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    databases perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=DBI/}
 

Index: pkgsrc/databases/p5-DBI/distinfo
diff -u pkgsrc/databases/p5-DBI/distinfo:1.53 pkgsrc/databases/p5-DBI/distinfo:1.54
--- pkgsrc/databases/p5-DBI/distinfo:1.53       Thu Oct  7 13:35:21 2021
+++ pkgsrc/databases/p5-DBI/distinfo    Thu Oct 14 07:08:58 2021
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.53 2021/10/07 13:35:21 nia Exp $
+$NetBSD: distinfo,v 1.54 2021/10/14 07:08:58 wiz Exp $
 
 RMD160 (DBI-1.643.tar.gz) = c944a9568c4aa0c8f5e936bba47d9ee55d16b6cb
 SHA512 (DBI-1.643.tar.gz) = 03812f3eb1e43c8290dadb8cb14bbced9ec6e237228ea2a2ba91f22e52143906a91a7e82945dab30b1d1b9fc925073721111adafd9a09fac070808ab88f908b8
 Size (DBI-1.643.tar.gz) = 612372 bytes
+SHA1 (patch-lib_DBD_File.pm) = e268b5f59b4474b8c2f5d72891c31f5d0f53c0c0

Added files:

Index: pkgsrc/databases/p5-DBI/patches/patch-lib_DBD_File.pm
diff -u /dev/null pkgsrc/databases/p5-DBI/patches/patch-lib_DBD_File.pm:1.1
--- /dev/null   Thu Oct 14 07:08:58 2021
+++ pkgsrc/databases/p5-DBI/patches/patch-lib_DBD_File.pm       Thu Oct 14 07:08:58 2021
@@ -0,0 +1,28 @@
+$NetBSD: patch-lib_DBD_File.pm,v 1.1 2021/10/14 07:08:58 wiz Exp $
+
+Fix CVE-2014-10402
+https://github.com/perl5-dbi/dbi/pull/93/commits/19d0fb169eed475e1c053e99036b8668625cfa94
+
+--- lib/DBD/File.pm.orig       2016-11-09 10:11:37.000000000 +0000
++++ lib/DBD/File.pm
+@@ -109,7 +109,11 @@ sub connect
+     # We do not (yet) care about conflicting attributes here
+     # my $dbh = DBI->connect ("dbi:CSV:f_dir=test", undef, undef, { f_dir => "text" });
+     # will test here that both test and text should exist
+-    if (my $attr_hash = (DBI->parse_dsn ($dbname))[3]) {
++    #
++    # Parsing on our own similar to parse_dsn to find attributes in 'dbname' parameter.
++    if ($dbname) {
++      my @attrs = split /;/ => $dbname;
++      my $attr_hash = { map { split /\s*=>?\s*|\s*,\s*/, $_} @attrs };
+       if (defined $attr_hash->{f_dir} && ! -d $attr_hash->{f_dir}) {
+           my $msg = "No such directory '$attr_hash->{f_dir}";
+           $drh->set_err (2, $msg);
+@@ -120,7 +124,6 @@ sub connect
+     if ($attr and defined $attr->{f_dir} && ! -d $attr->{f_dir}) {
+       my $msg = "No such directory '$attr->{f_dir}";
+       $drh->set_err (2, $msg);
+-      $attr->{RaiseError} and croak $msg;
+       return;
+       }
+ 



Home | Main Index | Thread Index | Old Index