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