components/bash/patches/bash41-005.patch
branchs11u3-sru
changeset 7627 4758b76d5ad5
parent 7623 d89b1c5817f5
child 7628 409696918882
equal deleted inserted replaced
7623:d89b1c5817f5 7627:4758b76d5ad5
     1 			     BASH PATCH REPORT
       
     2 			     =================
       
     3 
       
     4 Bash-Release:	4.1
       
     5 Patch-ID:	bash41-005
       
     6 
       
     7 Bug-Reported-by:	[email protected]
       
     8 Bug-Reference-ID:	<[email protected]>
       
     9 Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2010-02/msg00132.html
       
    10 
       
    11 Bug-Description:
       
    12 
       
    13 When the `read' builtin times out after the timeout specified with -t is
       
    14 exceeded, it does not reset the flags that tell signal handlers to process
       
    15 signals immediately instead of deferring their handling.  This can result
       
    16 in unsafe functions being called from signal handlers, which can cause bash
       
    17 to hang or dump core.
       
    18 
       
    19 Patch (apply with `patch -p0'):
       
    20 
       
    21 *** ../bash-4.1-patched/builtins/read.def	2009-10-08 11:35:46.000000000 -0400
       
    22 --- builtins/read.def	2010-03-17 17:35:39.000000000 -0400
       
    23 ***************
       
    24 *** 616,621 ****
       
    25       zsyncfd (fd);
       
    26   
       
    27 -   interrupt_immediately--;
       
    28 -   terminate_immediately--;
       
    29     discard_unwind_frame ("read_builtin");
       
    30   
       
    31 --- 616,619 ----
       
    32 ***************
       
    33 *** 624,627 ****
       
    34 --- 622,628 ----
       
    35   assign_vars:
       
    36   
       
    37 +   interrupt_immediately--;
       
    38 +   terminate_immediately--;
       
    39 + 
       
    40   #if defined (ARRAY_VARS)
       
    41     /* If -a was given, take the string read, break it into a list of words,
       
    42 *** ../bash-4.1-patched/patchlevel.h	2009-10-01 16:39:22.000000000 -0400
       
    43 --- patchlevel.h	2010-01-14 09:38:08.000000000 -0500
       
    44 ***************
       
    45 *** 26,30 ****
       
    46      looks for to find the patch level (for the sccs version string). */
       
    47   
       
    48 ! #define PATCHLEVEL 4
       
    49   
       
    50   #endif /* _PATCHLEVEL_H_ */
       
    51 --- 26,30 ----
       
    52      looks for to find the patch level (for the sccs version string). */
       
    53   
       
    54 ! #define PATCHLEVEL 5
       
    55   
       
    56   #endif /* _PATCHLEVEL_H_ */