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