polynomial-c 14/07/08 09:03:08
Added:
readline-6.3-revert-all-at-newline-history-segfault.patch
Log:
Revbump to fix a segfault with revert-all-at-newline. Removed old
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key
0x981CA6FC)
Revision Changes Path
1.1
sys-libs/readline/files/readline-6.3-revert-all-at-newline-history-segfault.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/files/readline-6.3-revert-all-at-newline-history-segfault.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/readline/files/readline-6.3-revert-all-at-newline-history-segfault.patch?rev=1.1&content-type=text/plain
Index: readline-6.3-revert-all-at-newline-history-segfault.patch
===================================================================
https://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html
--- readline-6.3/misc.c
+++ readline-6.3/misc.c
@@ -462,13 +462,13 @@
/* Set up rl_line_buffer and other variables from history entry */
rl_replace_from_history (entry, 0); /* entry->line is now current */
/* Undo all changes to this history entry */
+ entry->data = 0;
while (rl_undo_list)
rl_do_undo ();
/* And copy the reverted line back to the history entry, preserving
the timestamp. */
FREE (entry->line);
entry->line = savestring (rl_line_buffer);
- entry->data = 0;
}
entry = previous_history ();
}