mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
dev-perl/Convert-ASN1: -r bump for CVE-2013-7488 bug #716680
- EAPI7 - Remove empty/unused variable assignments - Add patch submitted to upstream repo to remedy CVE-2013-7488 Bug: https://bugs.gentoo.org/716680 Bug: https://github.com/gbarr/perl-Convert-ASN1/pull/15 Bug: https://github.com/gbarr/perl-Convert-ASN1/issues/14 Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1821879 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Kent Fredric <kentnl@gentoo.org>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DIST_AUTHOR=GBARR
|
||||
DIST_VERSION=0.27
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Standard en/decode of ASN.1 structures"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
>=virtual/perl-ExtUtils-MakeMaker-6.300.0
|
||||
test? (
|
||||
>=virtual/perl-Math-BigInt-1.997.0
|
||||
>=virtual/perl-Test-Simple-0.900.0
|
||||
)
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-perl-526.patch"
|
||||
"${FILESDIR}/${PN}-0.270.0-CVE-2013-7488.patch"
|
||||
)
|
||||
@@ -0,0 +1,45 @@
|
||||
From ce148a2e0872b708450005cf0b3a944014aae990 Mon Sep 17 00:00:00 2001
|
||||
From: Dana Jacobsen <dana@acm.org>
|
||||
Date: Tue, 29 Oct 2013 08:37:48 -0700
|
||||
Subject: [PATCH 1/2] Fix unsafe decoding in indef case
|
||||
|
||||
Bug: https://github.com/gbarr/perl-Convert-ASN1/pull/15
|
||||
---
|
||||
lib/Convert/ASN1/_decode.pm | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/Convert/ASN1/_decode.pm b/lib/Convert/ASN1/_decode.pm
|
||||
index e811e8d..eb2b584 100644
|
||||
--- a/lib/Convert/ASN1/_decode.pm
|
||||
+++ b/lib/Convert/ASN1/_decode.pm
|
||||
@@ -685,6 +685,7 @@ sub _scan_indef {
|
||||
if((ord($tag) & 0x1f) == 0x1f) {
|
||||
my $b;
|
||||
do {
|
||||
+ return if $pos >= $end;
|
||||
$tag .= substr($_[0],$pos++,1);
|
||||
$b = ord substr($tag,-1);
|
||||
} while($b & 0x80);
|
||||
|
||||
From 8125d99e15596fee1b5f904ed74a76bccf54082d Mon Sep 17 00:00:00 2001
|
||||
From: Dana Jacobsen <dana@acm.org>
|
||||
Date: Tue, 29 Oct 2013 08:53:09 -0700
|
||||
Subject: [PATCH 2/2] Add second part of position check
|
||||
|
||||
Bug: https://github.com/gbarr/perl-Convert-ASN1/pull/15
|
||||
---
|
||||
lib/Convert/ASN1/_decode.pm | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/Convert/ASN1/_decode.pm b/lib/Convert/ASN1/_decode.pm
|
||||
index eb2b584..67b95aa 100644
|
||||
--- a/lib/Convert/ASN1/_decode.pm
|
||||
+++ b/lib/Convert/ASN1/_decode.pm
|
||||
@@ -679,6 +679,7 @@ sub _scan_indef {
|
||||
$pos += 2;
|
||||
next;
|
||||
}
|
||||
+ return if $pos >= $end;
|
||||
|
||||
my $tag = substr($_[0], $pos++, 1);
|
||||
|
||||
Reference in New Issue
Block a user