author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Wed, 29 Aug 2012 11:05:56 -0700 | |
changeset 957 | 255465c5756f |
parent 927 | 19eda0ce91e0 |
permissions | -rw-r--r-- |
927
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
1 |
BASH PATCH REPORT |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
2 |
================= |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
3 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
4 |
Bash-Release: 4.1 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
5 |
Patch-ID: bash41-010 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
6 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
7 |
Bug-Reported-by: Stephane Jourdois <[email protected]> |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
8 |
Bug-Reference-ID: <[email protected]> |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
9 |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-05/msg00165.html |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
10 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
11 |
Bug-Description: |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
12 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
13 |
The expansion of the \W prompt string escape sequence incorrectly used |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
14 |
strcpy to copy overlapping strings. Only memmove works in this case. |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
15 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
16 |
Patch (apply with `patch -p0'): |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
17 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
18 |
*** ../bash-4.1-patched/parse.y 2009-12-30 12:51:42.000000000 -0500 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
19 |
--- parse.y 2011-02-24 16:40:48.000000000 -0500 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
20 |
*************** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
21 |
*** 5153,5157 **** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
22 |
t = strrchr (t_string, '/'); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
23 |
if (t) |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
24 |
! strcpy (t_string, t + 1); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
25 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
26 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
27 |
--- 5153,5157 ---- |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
28 |
t = strrchr (t_string, '/'); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
29 |
if (t) |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
30 |
! memmove (t_string, t + 1, strlen (t)); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
31 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
32 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
33 |
*** ../bash-4.1-patched/y.tab.c 2009-12-30 12:52:02.000000000 -0500 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
34 |
--- y.tab.c 2011-02-24 16:50:27.000000000 -0500 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
35 |
*************** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
36 |
*** 7482,7486 **** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
37 |
t = strrchr (t_string, '/'); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
38 |
if (t) |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
39 |
! strcpy (t_string, t + 1); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
40 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
41 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
42 |
--- 7482,7486 ---- |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
43 |
t = strrchr (t_string, '/'); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
44 |
if (t) |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
45 |
! memmove (t_string, t + 1, strlen (t)); |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
46 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
47 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
48 |
*************** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
49 |
*** 8244,8246 **** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
50 |
} |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
51 |
#endif /* HANDLE_MULTIBYTE */ |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
52 |
- |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
53 |
--- 8244,8245 ---- |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
54 |
*** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
55 |
--- patchlevel.h 2010-01-14 09:38:08.000000000 -0500 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
56 |
*************** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
57 |
*** 26,30 **** |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
58 |
looks for to find the patch level (for the sccs version string). */ |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
59 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
60 |
! #define PATCHLEVEL 9 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
61 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
62 |
#endif /* _PATCHLEVEL_H_ */ |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
63 |
--- 26,30 ---- |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
64 |
looks for to find the patch level (for the sccs version string). */ |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
65 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
66 |
! #define PATCHLEVEL 10 |
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
67 |
|
19eda0ce91e0
7186425 potential stack corruption in bash <= 4.2-033
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
68 |
#endif /* _PATCHLEVEL_H_ */ |