Tomas Janousek 5a0cfd
			     BASH PATCH REPORT
Tomas Janousek 5a0cfd
			     =================
Tomas Janousek 5a0cfd
Tomas Janousek 5a0cfd
Bash-Release: 3.2
Tomas Janousek 5a0cfd
Patch-ID: bash32-025
Tomas Janousek 5a0cfd
Tomas Janousek 5a0cfd
Bug-Reported-by:	Tom Bjorkholm <tom.bjorkholm@ericsson.com>
Tomas Janousek 5a0cfd
Bug-Reference-ID:	<AEA1A32F001C6B4F98614B5B80D7647D01C075E9@esealmw115.eemea.ericsson.se>
Tomas Janousek 5a0cfd
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-readline/2007-04/msg00004.html
Tomas Janousek 5a0cfd
Tomas Janousek 5a0cfd
Bug-Description:
Tomas Janousek 5a0cfd
Tomas Janousek 5a0cfd
An off-by-one error in readline's input buffering caused readline to drop
Tomas Janousek 5a0cfd
each 511th character of buffered input (e.g., when pasting a large amount
Tomas Janousek 5a0cfd
of data into a terminal window).
Tomas Janousek 5a0cfd
Tomas Janousek 5a0cfd
Patch:
Tomas Janousek 5a0cfd
Tomas Janousek 5a0cfd
*** ../bash-3.2-patched/lib/readline/input.c	Wed Aug 16 15:15:16 2006
Tomas Janousek 5a0cfd
--- lib/readline/input.c	Tue Jul 17 09:24:21 2007
Tomas Janousek 5a0cfd
***************
Tomas Janousek 5a0cfd
*** 134,139 ****
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
    *key = ibuffer[pop_index++];
Tomas Janousek 5a0cfd
! 
Tomas Janousek 5a0cfd
    if (pop_index >= ibuffer_len)
Tomas Janousek 5a0cfd
      pop_index = 0;
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
--- 134,142 ----
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
    *key = ibuffer[pop_index++];
Tomas Janousek 5a0cfd
! #if 0
Tomas Janousek 5a0cfd
    if (pop_index >= ibuffer_len)
Tomas Janousek 5a0cfd
+ #else
Tomas Janousek 5a0cfd
+   if (pop_index > ibuffer_len)
Tomas Janousek 5a0cfd
+ #endif
Tomas Janousek 5a0cfd
      pop_index = 0;
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
***************
Tomas Janousek 5a0cfd
*** 251,255 ****
Tomas Janousek 5a0cfd
  	{
Tomas Janousek 5a0cfd
  	  k = (*rl_getc_function) (rl_instream);
Tomas Janousek 5a0cfd
! 	  rl_stuff_char (k);
Tomas Janousek 5a0cfd
  	  if (k == NEWLINE || k == RETURN)
Tomas Janousek 5a0cfd
  	    break;
Tomas Janousek 5a0cfd
--- 254,259 ----
Tomas Janousek 5a0cfd
  	{
Tomas Janousek 5a0cfd
  	  k = (*rl_getc_function) (rl_instream);
Tomas Janousek 5a0cfd
! 	  if (rl_stuff_char (k) == 0)
Tomas Janousek 5a0cfd
! 	    break;			/* some problem; no more room */
Tomas Janousek 5a0cfd
  	  if (k == NEWLINE || k == RETURN)
Tomas Janousek 5a0cfd
  	    break;
Tomas Janousek 5a0cfd
***************
Tomas Janousek 5a0cfd
*** 374,378 ****
Tomas Janousek 5a0cfd
--- 378,386 ----
Tomas Janousek 5a0cfd
      }
Tomas Janousek 5a0cfd
    ibuffer[push_index++] = key;
Tomas Janousek 5a0cfd
+ #if 0
Tomas Janousek 5a0cfd
    if (push_index >= ibuffer_len)
Tomas Janousek 5a0cfd
+ #else
Tomas Janousek 5a0cfd
+   if (push_index > ibuffer_len)
Tomas Janousek 5a0cfd
+ #endif
Tomas Janousek 5a0cfd
      push_index = 0;
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
*** ../bash-3.2/patchlevel.h	Thu Apr 13 08:31:04 2006
Tomas Janousek 5a0cfd
--- patchlevel.h	Mon Oct 16 14:22:54 2006
Tomas Janousek 5a0cfd
***************
Tomas Janousek 5a0cfd
*** 26,30 ****
Tomas Janousek 5a0cfd
     looks for to find the patch level (for the sccs version string). */
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
! #define PATCHLEVEL 24
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
  #endif /* _PATCHLEVEL_H_ */
Tomas Janousek 5a0cfd
--- 26,30 ----
Tomas Janousek 5a0cfd
     looks for to find the patch level (for the sccs version string). */
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
! #define PATCHLEVEL 25
Tomas Janousek 5a0cfd
  
Tomas Janousek 5a0cfd
  #endif /* _PATCHLEVEL_H_ */