diff --git a/texinfo-7.0.2-undef-val-array-ref.patch b/texinfo-7.0.2-undef-val-array-ref.patch new file mode 100644 index 0000000..0710efd --- /dev/null +++ b/texinfo-7.0.2-undef-val-array-ref.patch @@ -0,0 +1,11 @@ +diff -up texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm.orig texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm +--- texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm.orig 2023-01-22 11:42:42.000000000 +0100 ++++ texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm 2023-02-22 12:22:13.711852621 +0100 +@@ -4357,6 +4357,7 @@ sub _process_remaining_on_line($$$$) + and ($current->{'parent'}->{'type'} eq 'menu_comment' + or $current->{'parent'}->{'type'} eq 'menu_entry_description') + and $asterisk ++ and $current->{'contents'} + and @{$current->{'contents'}} + and $current->{'contents'}->[-1]->{'type'} + and $current->{'contents'}->[-1]->{'type'} eq 'empty_line' diff --git a/texinfo.spec b/texinfo.spec index d5c986d..f5895bb 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -3,7 +3,7 @@ Summary: Tools needed to create Texinfo format documentation files Name: texinfo Version: 7.0.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Url: http://www.gnu.org/software/texinfo/ Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz @@ -17,6 +17,8 @@ Patch1: info-6.5-sync-fix-info-dir.patch Patch2: texinfo-6.5-fix-info-dir.patch # Patch3: fixes issues detected by static analysis Patch3: texinfo-6.5-covscan-fixes.patch +# Patch4: fixes possible use of an undefined value as an ARRAY reference in ParserNonXS.pm +Patch4: texinfo-7.0.2-undef-val-array-ref.patch BuildRequires: make BuildRequires: gcc @@ -150,6 +152,11 @@ export ALL_TESTS=yes %{_mandir}/man1/pdftexi2dvi.1* %changelog +* Wed Feb 22 2023 Vitezslav Crhonek - 7.0.2-2 +- Fix possible use of an undefined value as an ARRAY reference in ParserNonXS.pm + (causes FTBFS of a2ps) + Resolves: #2171433 + * Mon Jan 23 2023 Vitezslav Crhonek - 7.0.2-1 - Update to texinfo-7.0.2 Resolves: #2162979