]>
Commit | Line | Data |
---|---|---|
81c0d887 AM |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 4.2 | |
5 | Patch-ID: bash42-019 | |
6 | ||
7 | Bug-Reported-by: Diego Augusto Molina <diegoaugustomolina@gmail.com> | |
8 | Bug-Reference-ID: <CAGOxLdHcSQu3ck9Qy3pRjj_NBU5tAPSAvNm-95-nLQ9Szwb6aA@mail.gmail.com> | |
9 | Bug-Reference-URL: lists.gnu.org/archive/html/bug-bash/2011-09/msg00047.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | Using `declare' with attributes and an invalid array variable name or | |
14 | assignment reference resulted in a segmentation fault instead of a | |
15 | declaration error. | |
16 | ||
17 | Patch (apply with `patch -p0'): | |
18 | ||
19 | *** ../bash-4.2-patched/builtins/declare.def 2010-05-30 18:25:21.000000000 -0400 | |
20 | --- builtins/declare.def 2011-09-15 15:20:20.000000000 -0400 | |
21 | *************** | |
22 | *** 514,517 **** | |
23 | --- 514,522 ---- | |
24 | var = assign_array_element (name, value, 0); /* XXX - not aflags */ | |
25 | *subscript_start = '\0'; | |
26 | + if (var == 0) /* some kind of assignment error */ | |
27 | + { | |
28 | + assign_error++; | |
29 | + NEXT_VARIABLE (); | |
30 | + } | |
31 | } | |
32 | else if (simple_array_assign) | |
33 | *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 | |
34 | --- patchlevel.h Thu Feb 24 21:41:34 2011 | |
35 | *************** | |
36 | *** 26,30 **** | |
37 | looks for to find the patch level (for the sccs version string). */ | |
38 | ||
39 | ! #define PATCHLEVEL 18 | |
40 | ||
41 | #endif /* _PATCHLEVEL_H_ */ | |
42 | --- 26,30 ---- | |
43 | looks for to find the patch level (for the sccs version string). */ | |
44 | ||
45 | ! #define PATCHLEVEL 19 | |
46 | ||
47 | #endif /* _PATCHLEVEL_H_ */ |