7 Bug-Reported-by: Tom Bjorkholm <tom.bjorkholm@ericsson.com>
8 Bug-Reference-ID: <AEA1A32F001C6B4F98614B5B80D7647D01C075E9@esealmw115.eemea.ericsson.se>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2007-04/msg00004.html
13 An off-by-one error in readline's input buffering caused readline to drop
14 each 511th character of buffered input (e.g., when pasting a large amount
15 of data into a terminal window).
19 *** ../bash-3.2-patched/lib/readline/input.c Wed Aug 16 15:15:16 2006
20 --- bash-3.2/lib/readline/input.c Tue Jul 17 09:24:21 2007
24 *key = ibuffer[pop_index++];
26 if (pop_index >= ibuffer_len)
31 *key = ibuffer[pop_index++];
33 if (pop_index >= ibuffer_len)
35 + if (pop_index > ibuffer_len)
42 k = (*rl_getc_function) (rl_instream);
44 if (k == NEWLINE || k == RETURN)
48 k = (*rl_getc_function) (rl_instream);
49 ! if (rl_stuff_char (k) == 0)
50 ! break; /* some problem; no more room */
51 if (k == NEWLINE || k == RETURN)
57 ibuffer[push_index++] = key;
59 if (push_index >= ibuffer_len)
61 + if (push_index > ibuffer_len)
65 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
66 --- bash-3.2/patchlevel.h Mon Oct 16 14:22:54 2006
69 looks for to find the patch level (for the sccs version string). */
71 ! #define PATCHLEVEL 24
73 #endif /* _PATCHLEVEL_H_ */
75 looks for to find the patch level (for the sccs version string). */
77 ! #define PATCHLEVEL 25
79 #endif /* _PATCHLEVEL_H_ */