ntfsprogs: obsoleted
[packages.git] / utils / bash / patches / 119-upstream-bash42-019.patch
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 --- a/builtins/declare.def
20 +++ b/builtins/declare.def
21 @@ -513,6 +513,11 @@ declare_internal (list, local_var)
22               *subscript_start = '[';   /* ] */
23               var = assign_array_element (name, value, 0);      /* XXX - not aflags */
24               *subscript_start = '\0';
25 +             if (var == 0)     /* some kind of assignment error */
26 +               {
27 +                 assign_error++;
28 +                 NEXT_VARIABLE ();
29 +               }
30             }
31           else if (simple_array_assign)
32             {
33 --- a/patchlevel.h
34 +++ b/patchlevel.h
35 @@ -25,6 +25,6 @@
36     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
37     looks for to find the patch level (for the sccs version string). */
38  
39 -#define PATCHLEVEL 18
40 +#define PATCHLEVEL 19
41  
42  #endif /* _PATCHLEVEL_H_ */