Fix possible use of an undefined value as an ARRAY reference in ParserNonXS.pm

This commit is contained in:
Vitezslav Crhonek 2023-02-22 14:58:14 +01:00
parent edde67cf11
commit 7c044e6540
2 changed files with 19 additions and 1 deletions

View File

@ -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'

View File

@ -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 <vcrhonek@redhat.com> - 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 <vcrhonek@redhat.com> - 7.0.2-1
- Update to texinfo-7.0.2
Resolves: #2162979