Compare commits

...

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

12 changed files with 123 additions and 322 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

9
.gitignore vendored
View File

@ -1 +1,8 @@
SOURCES/Convert-ASN1-0.27.tar.gz
Convert-ASN1-0.22.tar.gz
/Convert-ASN1-0.23.tar.gz
/Convert-ASN1-0.26.tar.gz
/Convert-ASN1-0.27.tar.gz
/Convert-ASN1-0.29.tar.gz
/Convert-ASN1-0.31.tar.gz
/Convert-ASN1-0.33.tar.gz
/Convert-ASN1-0.34.tar.gz

View File

@ -1,45 +0,0 @@
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((unpack("C",$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);

View File

@ -1,257 +0,0 @@
From f3ffdf1baa2a5400bdaadc44ef6015c3003a42bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 28 Aug 2019 09:56:10 +0200
Subject: [PATCH] Correct shebangs in tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/00prim.t | 2 +-
t/01tag.t | 2 +-
t/02seq.t | 2 +-
t/03seqof.t | 2 +-
t/04opt.t | 2 +-
t/05time.t | 2 +-
t/06bigint.t | 2 +-
t/07io.t | 2 +-
t/08set.t | 2 +-
t/09contr.t | 2 +-
t/10choice.t | 2 +-
t/11explicit.t | 2 +-
t/11indef.t | 2 +-
t/12der.t | 2 +-
t/13utf8.t | 2 +-
t/14any.t | 2 +-
t/15extseq.t | 2 +-
t/16extset.t | 2 +-
t/17extchoice.t | 2 +-
t/18tagdefault.t | 2 +-
t/99misc.t | 2 +-
t/x509.t | 2 +-
22 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/t/00prim.t b/t/00prim.t
index 904c9c6..cd18732 100644
--- a/t/00prim.t
+++ b/t/00prim.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/01tag.t b/t/01tag.t
index 40e28a0..dd375af 100644
--- a/t/01tag.t
+++ b/t/01tag.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/02seq.t b/t/02seq.t
index bc21712..531f2fe 100644
--- a/t/02seq.t
+++ b/t/02seq.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/03seqof.t b/t/03seqof.t
index 66683b6..a5e699b 100644
--- a/t/03seqof.t
+++ b/t/03seqof.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/04opt.t b/t/04opt.t
index 7f23fca..33fba19 100644
--- a/t/04opt.t
+++ b/t/04opt.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/05time.t b/t/05time.t
index f444e7f..fe6a179 100644
--- a/t/05time.t
+++ b/t/05time.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that the primitive operators are working
diff --git a/t/06bigint.t b/t/06bigint.t
index f9aeba3..ab1164f 100644
--- a/t/06bigint.t
+++ b/t/06bigint.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test bigint INTEGER encoding/decoding
diff --git a/t/07io.t b/t/07io.t
index 706cf51..b4c0c58 100644
--- a/t/07io.t
+++ b/t/07io.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
use Convert::ASN1 qw(:io);
use IO::Socket;
diff --git a/t/08set.t b/t/08set.t
index b35a7ba..7554157 100644
--- a/t/08set.t
+++ b/t/08set.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sets
diff --git a/t/09contr.t b/t/09contr.t
index 2213c7e..72d25fc 100644
--- a/t/09contr.t
+++ b/t/09contr.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the decode on constructed values
diff --git a/t/10choice.t b/t/10choice.t
index 6ceeb6d..93d194f 100644
--- a/t/10choice.t
+++ b/t/10choice.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of choices
diff --git a/t/11explicit.t b/t/11explicit.t
index 7e24506..195958c 100644
--- a/t/11explicit.t
+++ b/t/11explicit.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
BEGIN { require 't/funcs.pl' }
diff --git a/t/11indef.t b/t/11indef.t
index 7c3886d..b0581d7 100644
--- a/t/11indef.t
+++ b/t/11indef.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that indefinite length encodings can be decoded
diff --git a/t/12der.t b/t/12der.t
index b7d1b79..4469bd1 100644
--- a/t/12der.t
+++ b/t/12der.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sets
diff --git a/t/13utf8.t b/t/13utf8.t
index 1f62042..c8bff82 100644
--- a/t/13utf8.t
+++ b/t/13utf8.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of utf8 strings
diff --git a/t/14any.t b/t/14any.t
index 4147764..799e1dc 100644
--- a/t/14any.t
+++ b/t/14any.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Check whether the ANY DEFINED BY syntax is working
diff --git a/t/15extseq.t b/t/15extseq.t
index 6060793..af934e2 100644
--- a/t/15extseq.t
+++ b/t/15extseq.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/16extset.t b/t/16extset.t
index c57ac0c..f3fbea7 100644
--- a/t/16extset.t
+++ b/t/16extset.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/17extchoice.t b/t/17extchoice.t
index 66bd9c5..a3ba5d9 100644
--- a/t/17extchoice.t
+++ b/t/17extchoice.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test the use of sequences
diff --git a/t/18tagdefault.t b/t/18tagdefault.t
index 6a1fa3b..18fb1d8 100644
--- a/t/18tagdefault.t
+++ b/t/18tagdefault.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Test that default EXPLICIT tagging works.
diff --git a/t/99misc.t b/t/99misc.t
index 4b67aba..da3044a 100644
--- a/t/99misc.t
+++ b/t/99misc.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# Misc tests from github reported issues
diff --git a/t/x509.t b/t/x509.t
index 3fd5ba0..f931385 100644
--- a/t/x509.t
+++ b/t/x509.t
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
print "1..26\n";
--
2.21.0

15
gating.yaml Normal file
View File

@ -0,0 +1,15 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -0,0 +1,2 @@
from Config import *
addFilter("perl-Convert-ASN1-tests.noarch: W: no-documentation");

View File

@ -3,19 +3,14 @@
Summary: ASN.1 encode/decode library
Name: perl-Convert-ASN1
Version: 0.27
Release: 18%{?dist}
License: GPL+ or Artistic
Version: 0.34
Release: 5%{?dist}
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Convert-ASN1
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/Convert-ASN1-%{version}.tar.gz
# Correct shebangs in the tests
Patch0: Convert-ASN1-0.27-Correct-shebangs-in-tests.patch
Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Convert-ASN1-%{version}.tar.gz
# Allow running tests from a read-only location,
# <https://github.com/gbarr/perl-Convert-ASN1/pull/40>
Patch1: Convert-ASN1-0.27-Use-temporary-output-files-for-tests.patch
# Fix unsafe decoding in indef case,
# <https://github.com/gbarr/perl-Convert-ASN1/pull/15>
Patch2: Convert-ASN1-0.27-CVE-2013-7488.patch
Patch0: Convert-ASN1-0.27-Use-temporary-output-files-for-tests.patch
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
@ -46,7 +41,6 @@ BuildRequires: perl(Test::More) >= 0.90
# Optional tests:
BuildRequires: perl(Data::Dumper)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Suggests: perl(bytes)
Requires: perl(Carp)
Requires: perl(Encode)
@ -75,10 +69,7 @@ Tests from %{name}-%{version}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Convert-ASN1-%{version}
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
%autosetup -p1 -n Convert-ASN1-%{version}
# Help file to recognise the Perl scripts
for F in t/*.t; do
@ -110,17 +101,75 @@ make test
%license LICENSE
%doc ChangeLog OldChanges README.md examples/
%{perl_vendorlib}/Convert/
%{_mandir}/man3/*.3pm*
%{_mandir}/man3/Convert::ASN1*.3pm*
%files tests
%{_libexecdir}/%{name}
%changelog
* Thu Dec 14 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-18
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.34-5
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.34-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Aug 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-1
- 0.34 bump (bug #2229845)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-3
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Sep 23 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-1
- 0.33 bump
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-1
- 0.31 bump
* Wed May 26 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-1
- 0.29 bump
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-23
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-21
- Fix unsafe decoding in indef case (CVE-2013-7488)
* Tue Sep 17 2019 Petr Pisar <ppisar@redhat.com> - 0.27-17
- Bump a release to replace the EPEL package (bug #1746898)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-19
- Perl 5.32 rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Oct 30 2019 Petr Pisar <ppisar@redhat.com> - 0.27-17
- Quote a substituted number of processors in the test script
* Wed Aug 28 2019 Petr Pisar <ppisar@redhat.com> - 0.27-16
- Modernize spec file

12
plans/internal.fmf Normal file
View File

@ -0,0 +1,12 @@
summary: Private (RHEL) beakerlib tests
enabled: false
adjust:
- when: distro == rhel
enabled: true
because: private tests are accesible only within rhel pipline
discover:
- name: rhel
how: fmf
url: https://pkgs.devel.redhat.com/git/tests/perl-Convert-ASN1
execute:
how: tmt

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (Convert-ASN1-0.34.tar.gz) = f19734b5c267705467b59ddb4c4c7e0e23916da2aac2ac59629fef1c06e033d032fd27c68533beb3f928c02d8780e52ada2092630c72ef3da4561eadafd7936a

11
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Upstream tests
component: perl-Convert-ASN1
require: perl-Convert-ASN1-tests
test: /usr/libexec/perl-Convert-ASN1/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false