5 Patch-ID: readline63-008
7 Bug-Reported-by: Jared Yanovich <slovichon@gmail.com>
8 Bug-Reference-ID: <20140625225019.GJ17044@nightderanger.psc.edu>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html
13 When the readline `revert-all-at-newline' option is set, pressing newline
14 when the current line is one retrieved from history results in a double free
15 and a segmentation fault.
17 Patch (apply with `patch -p0'):
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
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 */
32 entry->line = savestring (rl_line_buffer);
35 entry = previous_history ();
37 *** ../readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
38 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
41 # Do not edit -- exists only for use by patch
45 # Do not edit -- exists only for use by patch