rcolebaugh / rpms / bash

Forked from rpms/bash 2 years ago
Clone
462fb2
			     BASH PATCH REPORT
462fb2
			     =================
462fb2
462fb2
Bash-Release:	4.2
462fb2
Patch-ID:	bash42-013
462fb2
462fb2
Bug-Reported-by:	Marten Wikstrom <marten.wikstrom@keystream.se>
462fb2
Bug-Reference-ID:	<BANLkTikKECAh94ZEX68iQvxYuPeEM_xoSQ@mail.gmail.com>
462fb2
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-05/msg00049.html
462fb2
462fb2
Bug-Description:
462fb2
462fb2
An off-by-one error caused the shell to skip over CTLNUL characters,
462fb2
which are used internally to mark quoted null strings.  The effect
462fb2
was to have stray 0x7f characters left after expanding words like
462fb2
""""""""aa.
462fb2
462fb2
Patch (apply with `patch -p0'):
462fb2
462fb2
*** ../bash-4.2-patched/subst.c	2011-03-06 14:11:11.000000000 -0500
462fb2
--- subst.c	2011-05-11 11:23:33.000000000 -0400
462fb2
***************
462fb2
*** 3707,3711 ****
462fb2
  	}
462fb2
        else if (string[i] == CTLNUL)
462fb2
! 	i++;
462fb2
  
462fb2
        prev_i = i;
462fb2
--- 3710,3717 ----
462fb2
  	}
462fb2
        else if (string[i] == CTLNUL)
462fb2
! 	{
462fb2
! 	  i++;
462fb2
! 	  continue;
462fb2
! 	}
462fb2
  
462fb2
        prev_i = i;
462fb2
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
462fb2
--- patchlevel.h	Thu Feb 24 21:41:34 2011
462fb2
***************
462fb2
*** 26,30 ****
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 12
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */
462fb2
--- 26,30 ----
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 13
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */