package/vlc: backport upstream patches to fix compat function for static_assert
[buildroot-gz.git] / package / readline / 0008-patchlevel-8.patch
blob412ba352d605a6db9ef655a3634ba13690f0ba2e
1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-008
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5 READLINE PATCH REPORT
6 =====================
8 Readline-Release: 6.3
9 Patch-ID: readline63-008
11 Bug-Reported-by: Jared Yanovich <slovichon@gmail.com>
12 Bug-Reference-ID: <20140625225019.GJ17044@nightderanger.psc.edu>
13 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html
15 Bug-Description:
17 When the readline `revert-all-at-newline' option is set, pressing newline
18 when the current line is one retrieved from history results in a double free
19 and a segmentation fault.
21 Patch (apply with `patch -p0'):
23 *** a/readline-6.3-patched/misc.c 2012-09-01 18:03:11.000000000 -0400
24 --- b/misc.c 2014-06-30 13:41:19.000000000 -0400
25 ***************
26 *** 462,465 ****
27 --- 462,466 ----
28 /* Set up rl_line_buffer and other variables from history entry */
29 rl_replace_from_history (entry, 0); /* entry->line is now current */
30 + entry->data = 0; /* entry->data is now current undo list */
31 /* Undo all changes to this history entry */
32 while (rl_undo_list)
33 ***************
34 *** 469,473 ****
35 FREE (entry->line);
36 entry->line = savestring (rl_line_buffer);
37 - entry->data = 0;
39 entry = previous_history ();
40 --- 470,473 ----
41 *** a/readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
42 --- b/patchlevel 2014-03-21 08:28:40.000000000 -0400
43 ***************
44 *** 1,3 ****
45 # Do not edit -- exists only for use by patch
47 ! 7
48 --- 1,3 ----
49 # Do not edit -- exists only for use by patch
51 ! 8