Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/readline/files: readline-6.3-revert-all-at-newline-history-segfault.patch
Date: Tue, 08 Jul 2014 09:03:14
Message-Id: 20140708090308.6DEA82004E@flycatcher.gentoo.org
1 polynomial-c 14/07/08 09:03:08
2
3 Added:
4 readline-6.3-revert-all-at-newline-history-segfault.patch
5 Log:
6 Revbump to fix a segfault with revert-all-at-newline. Removed old
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
9
10 Revision Changes Path
11 1.1 sys-libs/readline/files/readline-6.3-revert-all-at-newline-history-segfault.patch
12
13 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
14 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
15
16 Index: readline-6.3-revert-all-at-newline-history-segfault.patch
17 ===================================================================
18 https://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html
19
20 --- readline-6.3/misc.c
21 +++ readline-6.3/misc.c
22 @@ -462,13 +462,13 @@
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 /* Undo all changes to this history entry */
26 + entry->data = 0;
27 while (rl_undo_list)
28 rl_do_undo ();
29 /* And copy the reverted line back to the history entry, preserving
30 the timestamp. */
31 FREE (entry->line);
32 entry->line = savestring (rl_line_buffer);
33 - entry->data = 0;
34 }
35 entry = previous_history ();
36 }