From 4953bd23c8ddbd504b91fbf3466739a53d64e95f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sep 05 2017 07:18:58 +0000 Subject: import ncurses-5.9-14.20130511.el7_4 --- diff --git a/SOURCES/ncurses-setup.patch b/SOURCES/ncurses-setup.patch new file mode 100644 index 0000000..166b35f --- /dev/null +++ b/SOURCES/ncurses-setup.patch @@ -0,0 +1,20 @@ +diff --git a/ncurses/tinfo/lib_setup.c b/ncurses/tinfo/lib_setup.c +index 3e82a38..21ee98d 100644 +--- a/ncurses/tinfo/lib_setup.c ++++ b/ncurses/tinfo/lib_setup.c +@@ -783,14 +783,12 @@ TINFO_SETUP_TERM(TERMINAL ** tp, + if ((VALID_STRING(cursor_address) + || (VALID_STRING(cursor_down) && VALID_STRING(cursor_home))) + && VALID_STRING(clear_screen)) { +- free(termp); + ret_error1(TGETENT_YES, "terminal is not really generic.\n", tname); + } else { +- free(termp); ++ del_curterm(termp); + ret_error1(TGETENT_NO, "I need something more specific.\n", tname); + } + } else if (hard_copy) { +- free(termp); + ret_error1(TGETENT_YES, "I can't handle hardcopy terminals.\n", tname); + } + #endif diff --git a/SPECS/ncurses.spec b/SPECS/ncurses.spec index 9f43653..a5866bd 100644 --- a/SPECS/ncurses.spec +++ b/SPECS/ncurses.spec @@ -1,7 +1,7 @@ Summary: Ncurses support utilities Name: ncurses Version: 5.9 -Release: 13.20130511%{?dist} +Release: 14.20130511%{?dist} License: MIT Group: System Environment/Base URL: http://invisible-island.net/ncurses/ncurses.html @@ -15,6 +15,7 @@ Patch9: ncurses-libs.patch Patch10: ncurses-clear.patch Patch11: ncurses-urxvt.patch Patch12: ncurses-kbs.patch +Patch13: ncurses-setup.patch BuildRequires: gpm-devel pkgconfig Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -106,6 +107,7 @@ The ncurses-static package includes static libraries of the ncurses library. %patch10 -p1 %patch11 -p1 -b .urxvt %patch12 -p1 -b .kbs +%patch13 -p1 -b .setup # this will be in documentation, drop executable bits cp -p install-sh test @@ -247,6 +249,9 @@ bzip2 NEWS %{_libdir}/lib*.a %changelog +* Tue Aug 15 2017 Miroslav Lichvar 5.9-14.20130511 +- fix crash in libtinfo initialization (#1426215) + * Fri Jan 24 2014 Daniel Mach - 5.9-13.20130511 - Mass rebuild 2014-01-24