wok diff bash/stuff/bash32-025.patch @ rev 5649

mirror-tools: add backup.sh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 29 13:48:15 2010 +0200 (2010-05-29)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bash/stuff/bash32-025.patch	Sat May 29 13:48:15 2010 +0200
     1.3 @@ -0,0 +1,79 @@
     1.4 +			     BASH PATCH REPORT
     1.5 +			     =================
     1.6 +
     1.7 +Bash-Release: 3.2
     1.8 +Patch-ID: bash32-025
     1.9 +
    1.10 +Bug-Reported-by:	Tom Bjorkholm <tom.bjorkholm@ericsson.com>
    1.11 +Bug-Reference-ID:	<AEA1A32F001C6B4F98614B5B80D7647D01C075E9@esealmw115.eemea.ericsson.se>
    1.12 +Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-readline/2007-04/msg00004.html
    1.13 +
    1.14 +Bug-Description:
    1.15 +
    1.16 +An off-by-one error in readline's input buffering caused readline to drop
    1.17 +each 511th character of buffered input (e.g., when pasting a large amount
    1.18 +of data into a terminal window).
    1.19 +
    1.20 +Patch:
    1.21 +
    1.22 +*** ../bash-3.2-patched/lib/readline/input.c	Wed Aug 16 15:15:16 2006
    1.23 +--- lib/readline/input.c	Tue Jul 17 09:24:21 2007
    1.24 +***************
    1.25 +*** 134,139 ****
    1.26 +  
    1.27 +    *key = ibuffer[pop_index++];
    1.28 +! 
    1.29 +    if (pop_index >= ibuffer_len)
    1.30 +      pop_index = 0;
    1.31 +  
    1.32 +--- 134,142 ----
    1.33 +  
    1.34 +    *key = ibuffer[pop_index++];
    1.35 +! #if 0
    1.36 +    if (pop_index >= ibuffer_len)
    1.37 ++ #else
    1.38 ++   if (pop_index > ibuffer_len)
    1.39 ++ #endif
    1.40 +      pop_index = 0;
    1.41 +  
    1.42 +***************
    1.43 +*** 251,255 ****
    1.44 +  	{
    1.45 +  	  k = (*rl_getc_function) (rl_instream);
    1.46 +! 	  rl_stuff_char (k);
    1.47 +  	  if (k == NEWLINE || k == RETURN)
    1.48 +  	    break;
    1.49 +--- 254,259 ----
    1.50 +  	{
    1.51 +  	  k = (*rl_getc_function) (rl_instream);
    1.52 +! 	  if (rl_stuff_char (k) == 0)
    1.53 +! 	    break;			/* some problem; no more room */
    1.54 +  	  if (k == NEWLINE || k == RETURN)
    1.55 +  	    break;
    1.56 +***************
    1.57 +*** 374,378 ****
    1.58 +--- 378,386 ----
    1.59 +      }
    1.60 +    ibuffer[push_index++] = key;
    1.61 ++ #if 0
    1.62 +    if (push_index >= ibuffer_len)
    1.63 ++ #else
    1.64 ++   if (push_index > ibuffer_len)
    1.65 ++ #endif
    1.66 +      push_index = 0;
    1.67 +  
    1.68 +*** ../bash-3.2/patchlevel.h	Thu Apr 13 08:31:04 2006
    1.69 +--- patchlevel.h	Mon Oct 16 14:22:54 2006
    1.70 +***************
    1.71 +*** 26,30 ****
    1.72 +     looks for to find the patch level (for the sccs version string). */
    1.73 +  
    1.74 +! #define PATCHLEVEL 24
    1.75 +  
    1.76 +  #endif /* _PATCHLEVEL_H_ */
    1.77 +--- 26,30 ----
    1.78 +     looks for to find the patch level (for the sccs version string). */
    1.79 +  
    1.80 +! #define PATCHLEVEL 25
    1.81 +  
    1.82 +  #endif /* _PATCHLEVEL_H_ */