]>
Commit | Line | Data |
---|---|---|
81c0d887 AM |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 4.2 | |
5 | Patch-ID: bash42-013 | |
6 | ||
7 | Bug-Reported-by: Marten Wikstrom <marten.wikstrom@keystream.se> | |
8 | Bug-Reference-ID: <BANLkTikKECAh94ZEX68iQvxYuPeEM_xoSQ@mail.gmail.com> | |
9 | Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-05/msg00049.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | An off-by-one error caused the shell to skip over CTLNUL characters, | |
14 | which are used internally to mark quoted null strings. The effect | |
15 | was to have stray 0x7f characters left after expanding words like | |
16 | """"""""aa. | |
17 | ||
18 | Patch (apply with `patch -p0'): | |
19 | ||
20 | *** ../bash-4.2-patched/subst.c 2011-03-06 14:11:11.000000000 -0500 | |
21 | --- subst.c 2011-05-11 11:23:33.000000000 -0400 | |
22 | *************** | |
23 | *** 3707,3711 **** | |
24 | } | |
25 | else if (string[i] == CTLNUL) | |
26 | ! i++; | |
27 | ||
28 | prev_i = i; | |
29 | --- 3710,3717 ---- | |
30 | } | |
31 | else if (string[i] == CTLNUL) | |
32 | ! { | |
33 | ! i++; | |
34 | ! continue; | |
35 | ! } | |
36 | ||
37 | prev_i = i; | |
38 | *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 | |
39 | --- patchlevel.h Thu Feb 24 21:41:34 2011 | |
40 | *************** | |
41 | *** 26,30 **** | |
42 | looks for to find the patch level (for the sccs version string). */ | |
43 | ||
44 | ! #define PATCHLEVEL 12 | |
45 | ||
46 | #endif /* _PATCHLEVEL_H_ */ | |
47 | --- 26,30 ---- | |
48 | looks for to find the patch level (for the sccs version string). */ | |
49 | ||
50 | ! #define PATCHLEVEL 13 | |
51 | ||
52 | #endif /* _PATCHLEVEL_H_ */ |