The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / readline / 0002-patchlevel-2.patch
1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-002
2
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
4
5                            READLINE PATCH REPORT
6                            =====================
7
8 Readline-Release: 6.3
9 Patch-ID: readline63-002
10
11 Bug-Reported-by:        Anatol Pomozov <anatol.pomozov@gmail.com>
12 Bug-Reference-ID:       <CAOMFOmXy3mT2So5GQ5F-smCVArQuAeBwZ2QKzgCtMeXJoDeYOQ@mail.gmail.com>
13 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00010.html
14
15 Bug-Description:
16
17 When in callback mode, some readline commands can cause readline to seg
18 fault by passing invalid contexts to callback functions.
19
20 Patch (apply with `patch -p0'):
21
22 *** a/readline-6.3/readline.c   2013-10-28 14:58:06.000000000 -0400
23 --- b/readline.c        2014-03-10 14:15:02.000000000 -0400
24 ***************
25 *** 745,749 ****
26   
27     RL_CHECK_SIGNALS ();
28 !   if (r == 0)                 /* success! */
29       {
30         _rl_keyseq_chain_dispose ();
31 --- 745,750 ----
32   
33     RL_CHECK_SIGNALS ();
34 !   /* We only treat values < 0 specially to simulate recursion. */
35 !   if (r >= 0 || (r == -1 && (cxt->flags & KSEQ_SUBSEQ) == 0)) /* success! or failure! */
36       {
37         _rl_keyseq_chain_dispose ();
38 *** a/readline-6.3/patchlevel   2013-11-15 08:11:11.000000000 -0500
39 --- b/patchlevel        2014-03-21 08:28:40.000000000 -0400
40 ***************
41 *** 1,3 ****
42   # Do not edit -- exists only for use by patch
43   
44 ! 1
45 --- 1,3 ----
46   # Do not edit -- exists only for use by patch
47   
48 ! 2