Fix info segfaults on non existing info page when used with -o
This commit is contained in:
parent
907bc2871a
commit
cc03afcbbd
18
texinfo-5.2-non-existing-info-page-segfault.patch
Normal file
18
texinfo-5.2-non-existing-info-page-segfault.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff -up texinfo-5.2/info/info.c.orig texinfo-5.2/info/info.c
|
||||||
|
--- texinfo-5.2/info/info.c.orig 2014-01-16 08:55:50.084084818 +0100
|
||||||
|
+++ texinfo-5.2/info/info.c 2014-01-16 08:55:55.464112252 +0100
|
||||||
|
@@ -859,7 +859,13 @@ show_error_node (NODE *node)
|
||||||
|
{
|
||||||
|
if (info_error_rings_bell_p)
|
||||||
|
terminal_ring_bell ();
|
||||||
|
- if (!echo_area_is_active)
|
||||||
|
+ if (user_output_filename)
|
||||||
|
+ {
|
||||||
|
+ if (node->contents[node->nodelen - 1] == '\n')
|
||||||
|
+ node->contents[node->nodelen - 1] = 0;
|
||||||
|
+ info_error ("%s", node->contents);
|
||||||
|
+ }
|
||||||
|
+ else if (!echo_area_is_active)
|
||||||
|
{
|
||||||
|
free_echo_area ();
|
||||||
|
window_set_node_of_window (the_echo_area, node);
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Tools needed to create Texinfo format documentation files
|
Summary: Tools needed to create Texinfo format documentation files
|
||||||
Name: texinfo
|
Name: texinfo
|
||||||
Version: 5.2
|
Version: 5.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
Url: http://www.gnu.org/software/texinfo/
|
Url: http://www.gnu.org/software/texinfo/
|
||||||
@ -12,6 +12,8 @@ Source1: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz.sig
|
|||||||
Source2: info-dir
|
Source2: info-dir
|
||||||
Patch0: texinfo-4.12-zlib.patch
|
Patch0: texinfo-4.12-zlib.patch
|
||||||
Patch1: texinfo-4.13a-powerpc.patch
|
Patch1: texinfo-4.13a-powerpc.patch
|
||||||
|
# Patch2: bz#1053129, already upstream
|
||||||
|
Patch2: texinfo-5.2-non-existing-info-page-segfault.patch
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
Requires: perl >= 5.7.3, perl(Text::Unidecode)
|
Requires: perl >= 5.7.3, perl(Text::Unidecode)
|
||||||
@ -57,6 +59,7 @@ for printing using TeX.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .zlib
|
%patch0 -p1 -b .zlib
|
||||||
%patch1 -p1 -b .powerpc
|
%patch1 -p1 -b .powerpc
|
||||||
|
%patch2 -p1 -b .non-existing-info-page-segfault
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-external-Text-Unidecode \
|
%configure --with-external-Text-Unidecode \
|
||||||
@ -151,6 +154,9 @@ fi
|
|||||||
%{_mandir}/man1/pdftexi2dvi.1*
|
%{_mandir}/man1/pdftexi2dvi.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 16 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-2
|
||||||
|
- Fix info segfaults on non existing info page when used with -o
|
||||||
|
|
||||||
* Tue Oct 01 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-1
|
* Tue Oct 01 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-1
|
||||||
- Update to texinfo-5.2
|
- Update to texinfo-5.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user