bump version
[buildroot.git] / package / readline / readline51-001
blobd0703b2dc4fbfc5b71f4cb5131adc56862193a9c
1                            READLINE PATCH REPORT
2                            =====================
4 Readline-Release: 5.1
5 Patch-ID: readline51-001
7 Bug-Reported-by: Andreas Schwab <schwab@suse.de>
8 Bug-Reference-ID: <20051213141916.4014A394BFABD@sykes.suse.de>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2005-12/msg00038.html
11 Bug-Description:
13 A problem with the readline callback interface can result in segmentation
14 faults when using the delete-char function via a multiple-key sequence.
15 Two consecutive calls to delete-char will crash the application calling
16 readline.
18 Patch:
20 *** readline-5.1/readline.c     Mon Jul  4 22:29:35 2005
21 --- readline-5.1/readline.c     Tue Dec 20 17:38:29 2005
22 ***************
23 *** 715,719 ****
24           rl_dispatching = 1;
25           RL_SETSTATE(RL_STATE_DISPATCHING);
26 !         r = (*map[key].function)(rl_numeric_arg * rl_arg_sign, key);
27           RL_UNSETSTATE(RL_STATE_DISPATCHING);
28           rl_dispatching = 0;
29 --- 715,719 ----
30           rl_dispatching = 1;
31           RL_SETSTATE(RL_STATE_DISPATCHING);
32 !         (*map[key].function)(rl_numeric_arg * rl_arg_sign, key);
33           RL_UNSETSTATE(RL_STATE_DISPATCHING);
34           rl_dispatching = 0;
35 *** ../readline-5.1/text.c      Sat Sep 24 19:06:07 2005
36 --- text.c      Tue Dec 20 17:38:26 2005
37 ***************
38 *** 1072,1077 ****
39        int count, key;
40   {
41 -   int r;
42
43     if (count < 0)
44       return (_rl_rubout_char (-count, key));
45 --- 1072,1075 ----
46 ***************
47 *** 1091,1097 ****
48         rl_forward_byte (count, key);
49   
50 !       r = rl_kill_text (orig_point, rl_point);
51         rl_point = orig_point;
52 -       return r;
53       }
54     else
55 --- 1089,1094 ----
56         rl_forward_byte (count, key);
57   
58 !       rl_kill_text (orig_point, rl_point);
59         rl_point = orig_point;
60       }
61     else
62 ***************
63 *** 1100,1105 ****
64   
65         new_point = MB_NEXTCHAR (rl_line_buffer, rl_point, 1, MB_FIND_NONZERO);
66 !       return (rl_delete_text (rl_point, new_point));
67       }
68   }
69   
70 --- 1097,1103 ----
71   
72         new_point = MB_NEXTCHAR (rl_line_buffer, rl_point, 1, MB_FIND_NONZERO);
73 !       rl_delete_text (rl_point, new_point);
74       }
75 +   return 0;
76   }
77