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 --- a/lib/readline/misc.c
20 +++ b/lib/readline/misc.c
21 @@ -461,6 +461,7 @@ _rl_revert_all_lines ()
23 /* Set up rl_line_buffer and other variables from history entry */
24 rl_replace_from_history (entry, 0); /* entry->line is now current */
25 + entry->data = 0; /* entry->data is now current undo list */
26 /* Undo all changes to this history entry */
29 @@ -468,7 +469,6 @@ _rl_revert_all_lines ()
32 entry->line = savestring (rl_line_buffer);
35 entry = previous_history ();
40 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
41 looks for to find the patch level (for the sccs version string). */
43 -#define PATCHLEVEL 20
44 +#define PATCHLEVEL 21
46 #endif /* _PATCHLEVEL_H_ */