bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] Readline-6.3 Official Patch 8


From: Chet Ramey
Subject: [Bug-readline] Readline-6.3 Official Patch 8
Date: Tue, 12 Aug 2014 11:19:08 -0400

                           READLINE PATCH REPORT
                           =====================

Readline-Release: 6.3
Patch-ID: readline63-008

Bug-Reported-by:        Jared Yanovich <address@hidden>
Bug-Reference-ID:       <address@hidden>
Bug-Reference-URL:      
http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html

Bug-Description:

When the readline `revert-all-at-newline' option is set, pressing newline
when the current line is one retrieved from history results in a double free
and a segmentation fault.

Patch (apply with `patch -p0'):

*** ../readline-6.3-patched/misc.c      2012-09-01 18:03:11.000000000 -0400
--- misc.c      2014-06-30 13:41:19.000000000 -0400
***************
*** 462,465 ****
--- 462,466 ----
          /* Set up rl_line_buffer and other variables from history entry */
          rl_replace_from_history (entry, 0);   /* entry->line is now current */
+         entry->data = 0;                      /* entry->data is now current 
undo list */
          /* Undo all changes to this history entry */
          while (rl_undo_list)
***************
*** 469,473 ****
          FREE (entry->line);
          entry->line = savestring (rl_line_buffer);
-         entry->data = 0;
        }
        entry = previous_history ();
--- 470,473 ----
*** ../readline-6.3/patchlevel  2013-11-15 08:11:11.000000000 -0500
--- patchlevel  2014-03-21 08:28:40.000000000 -0400
***************
*** 1,3 ****
  # Do not edit -- exists only for use by patch
  
! 7
--- 1,3 ----
  # Do not edit -- exists only for use by patch
  
! 8

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]