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