source: npl/overig/readline/readline-6.3-patches/readline63-008 @ 5160d62

perl-5.22
Last change on this file since 5160d62 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.4 KB
Line 
1                           READLINE PATCH REPORT
2                           =====================
3
4Readline-Release: 6.3
5Patch-ID: readline63-008
6
7Bug-Reported-by:        Jared Yanovich <slovichon@gmail.com>
8Bug-Reference-ID:       <20140625225019.GJ17044@nightderanger.psc.edu>
9Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html
10
11Bug-Description:
12
13When the readline `revert-all-at-newline' option is set, pressing newline
14when the current line is one retrieved from history results in a double free
15and a segmentation fault.
16
17Patch (apply with `patch -p0'):
18
19*** ../readline-6.3-patched/misc.c      2012-09-01 18:03:11.000000000 -0400
20--- misc.c      2014-06-30 13:41:19.000000000 -0400
21***************
22*** 462,465 ****
23--- 462,466 ----
24          /* Set up rl_line_buffer and other variables from history entry */
25          rl_replace_from_history (entry, 0);   /* entry->line is now current */
26+         entry->data = 0;                      /* entry->data is now current undo list */
27          /* Undo all changes to this history entry */
28          while (rl_undo_list)
29***************
30*** 469,473 ****
31          FREE (entry->line);
32          entry->line = savestring (rl_line_buffer);
33-         entry->data = 0;
34        }
35        entry = previous_history ();
36--- 470,473 ----
37*** ../readline-6.3/patchlevel  2013-11-15 08:11:11.000000000 -0500
38--- patchlevel  2014-03-21 08:28:40.000000000 -0400
39***************
40*** 1,3 ****
41  # Do not edit -- exists only for use by patch
42 
43! 7
44--- 1,3 ----
45  # Do not edit -- exists only for use by patch
46 
47! 8
Note: See TracBrowser for help on using the repository browser.