From c9c292aaddca79c22c7e0991c41fdaa541d5572e3647cd57ee2e36bd4de2fc26 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 17 Nov 2008 15:35:03 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ncurses?expand=0&rev=22 --- ncurses-5.6-fallback.dif | 11 +++++++++++ ncurses.changes | 5 +++++ ncurses.spec | 24 ++++++++++++++---------- 3 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 ncurses-5.6-fallback.dif diff --git a/ncurses-5.6-fallback.dif b/ncurses-5.6-fallback.dif new file mode 100644 index 0000000..5e10118 --- /dev/null +++ b/ncurses-5.6-fallback.dif @@ -0,0 +1,11 @@ +--- ncurses/tinfo/lib_setup.c ++++ ncurses/tinfo/lib_setup.c 2008-11-14 18:54:38.539715994 +0100 +@@ -566,7 +566,7 @@ _nc_setupterm(NCURSES_CONST char *tname, + const TERMTYPE *fallback = _nc_fallback(tname); + + if (fallback) { +- termp->type = *fallback; ++ _nc_copy_termtype(&(termp->type),fallback); + status = TGETENT_YES; + } + } diff --git a/ncurses.changes b/ncurses.changes index d80178a..5822f5a 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 14 18:59:42 CET 2008 - werner@suse.de + +- Do not free arrays and strings from static fallback entries (bnc#443683) + ------------------------------------------------------------------- Thu Sep 4 11:55:11 CEST 2008 - werner@suse.de diff --git a/ncurses.spec b/ncurses.spec index ebd4737..73e2034 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -27,7 +27,7 @@ License: X11/MIT Group: System/Base AutoReqProv: on Version: 5.6 -Release: 88 +Release: 89 Summary: New curses Libraries Url: http://invisible-island.net/ncurses/ncurses.html Source0: ncurses-5.6.tar.bz2 @@ -43,6 +43,7 @@ Patch2: ncurses-5.6-pthread.dif Patch3: ncurses-5.6-overwrite.dif Patch4: ncurses-5.6-tack.dif Patch5: ncurses-5.6-gpm.dif +Patch6: ncurses-5.6-fallback.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _miscdir %{_datadir}/misc @@ -255,6 +256,7 @@ ln -sf tack-* tack %patch -P 3 -p0 -b .ow %patch -P 4 -p0 -b .hs %patch -P 5 -p0 -b .gpm +%patch -P 6 -p0 -b .fb %patch -P 0 -p0 %build @@ -637,6 +639,8 @@ ln -sf tack-* tack %defattr(-,root,root) %changelog +* Fri Nov 14 2008 werner@suse.de +- Do not free arrays and strings from static fallback entries (bnc#443683) * Thu Sep 04 2008 werner@suse.de - Correct order of include paths in ncurses6 case * Mon Sep 01 2008 werner@suse.de @@ -701,7 +705,7 @@ ln -sf tack-* tack * Tue Apr 22 2008 werner@suse.de - Split ncurses into two separate packages ncurses-utils and terminfo-base to get the resolvers happy (bnc#381293) -* Sun Apr 20 2008 ro@suse.de +* Sat Apr 19 2008 ro@suse.de - update baselibs.conf * Fri Apr 11 2008 werner@suse.de - Do not dlopen libgpm if already loaded by runtime linker @@ -727,7 +731,7 @@ ln -sf tack-* tack report ncurses.h to reside in /usr/include/ncurses (#337412). * Wed Sep 05 2007 werner@suse.de - Move libncursesw to /lib or /lib64 (bug #307353) -* Sat May 26 2007 dmueller@suse.de +* Fri May 25 2007 dmueller@suse.de - add %%post/un to call ldconfig * Tue May 15 2007 dmueller@suse.de - move documentation to -devel package and bzip text files @@ -849,7 +853,7 @@ ln -sf tack-* tack - Add kcbt key for YaST - remove ncurses 4.2 - Enable ncurses 5.2 with wide character support -* Sat Jun 15 2002 olh@suse.de +* Fri Jun 14 2002 olh@suse.de - do not build ncurses 4.2 on ppc64, it appears in Requires later * Wed May 22 2002 olh@suse.de - do not package libncurses.4 on ppc64, allow build as non-root @@ -859,7 +863,7 @@ ln -sf tack-* tack - Disable old ncurses libraries on x86_64 * Thu Feb 21 2002 werner@suse.de - Fix cat&paste error of patch level 20010922 -* Tue Feb 12 2002 ro@suse.de +* Mon Feb 11 2002 ro@suse.de - tar option for bz2 is "j" * Wed Feb 06 2002 coolo@suse.de - s390x is 64 bit too @@ -947,7 +951,7 @@ ln -sf tack-* tack * Mon Apr 03 2000 bk@suse.de - added workaround for bad %%{suse_update_config -f} handling on i386 message was: suse_update_config: invalid option -- -* Sun Apr 02 2000 bk@suse.de +* Sat Apr 01 2000 bk@suse.de - updated %%suse_update_config call for s390 * Fri Mar 03 2000 schwab@suse.de - Fix for ia64. @@ -993,12 +997,12 @@ ln -sf tack-* tack - Move /usr/lib/terminfo/, /usr/lib/tabset/ to /usr/share/terminfo/, /usr/share/tabset/ and set a compatibility link. - Check security fix, seems to work. -* Fri Oct 15 1999 werner@suse.de +* Thu Oct 14 1999 werner@suse.de - Port some patches from debian mainly security issues - Use newer terminfo.src - Move some common terminfo entries from terminfo packages to main packages ncurses -* Thu Oct 14 1999 werner@suse.de +* Wed Oct 13 1999 werner@suse.de - Add panel patch from ncurses 5.0 - Remove kbs=\177 for some terminals like some xterm types and vt100 to hold it compatible with other UNICES @@ -1013,7 +1017,7 @@ ln -sf tack-* tack - changed permissions (a+x) for libform,menu,panel * Mon Mar 22 1999 florian@suse.de - add compatibility link from /usr/share/{tabset,terminfo} -* Sun Sep 06 1998 ro@suse.de +* Sat Sep 05 1998 ro@suse.de - fixed neededforbuild * Wed Jun 03 1998 florian@suse.de - use major 4 for glibc2 @@ -1050,7 +1054,7 @@ ln -sf tack-* tack - update to version 4.1 * Wed Apr 30 1997 florian@suse.de - mv /lib/libncurses.so.1.9* /usr/lib/ -* Mon Apr 14 1997 florian@suse.de +* Sun Apr 13 1997 florian@suse.de - update to new version 970412 * Thu Jan 02 1997 werner@suse.de - Anpassung von terminfo an das XTerm app-defaults