OSDN Git Service

ncurses 5.9 - patch 20121017
authorThomas E. Dickey <dickey@invisible-island.net>
Wed, 17 Oct 2012 09:57:52 +0000 (09:57 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Wed, 17 Oct 2012 09:57:52 +0000 (09:57 +0000)
+ fix change to _nc_scroll_optimize(), which incorrectly freed memory
  (Redhat #866989).

NEWS
dist.mk
ncurses/tty/hardscroll.c
package/debian/changelog
package/ncurses.spec

diff --git a/NEWS b/NEWS
index 1763402..0e5e93a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,7 +25,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.1963 2012/10/13 23:19:59 tom Exp $
+-- $Id: NEWS,v 1.1964 2012/10/17 09:31:53 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,10 @@ See the AUTHORS file for the corresponding full names.
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20121017
+       + fix change to _nc_scroll_optimize(), which incorrectly freed memory 
+         (Redhat #866989).
+
 20121013
        + add vte-2012, gnome-2012, making these the defaults for vte/gnome
          (patch by Christian Persch).
diff --git a/dist.mk b/dist.mk
index 993d58c..f74ae81 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -25,7 +25,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.896 2012/10/13 14:37:04 tom Exp $
+# $Id: dist.mk,v 1.897 2012/10/17 09:32:03 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -37,7 +37,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 5
 NCURSES_MINOR = 9
-NCURSES_PATCH = 20121013
+NCURSES_PATCH = 20121017
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 58c9655..4ec168a 100644 (file)
@@ -147,7 +147,7 @@ AUTHOR
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: hardscroll.c,v 1.50 2012/09/01 23:24:49 tom Exp $")
+MODULE_ID("$Id: hardscroll.c,v 1.51 2012/10/17 09:01:10 tom Exp $")
 
 #if defined(SCROLLDEBUG) || defined(HASHDEBUG)
 
@@ -205,7 +205,6 @@ NCURSES_SP_NAME(_nc_scroll_optimize) (NCURSES_SP_DCL0)
                                       oldnums(SP_PARM));
        if (!new_oldnums)
            return;
-       FreeIfNeeded(oldnums(SP_PARM));
        oldnums(SP_PARM) = new_oldnums;
        OLDNUM_SIZE(SP_PARM) = need_lines;
     }
index 4472e7c..1480de8 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9-20121013) unstable; urgency=low
+ncurses6 (5.9-20121017) unstable; urgency=low
 
-  * latest weekly patch
+  * Redhat #866989
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 13 Oct 2012 19:21:12 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Wed, 17 Oct 2012 05:47:25 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index 0f65e38..846ffa6 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Release: 5.9
-Version: 20121013
+Version: 20121017
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{release}-%{version}.tgz