|
|
462fb2 |
BASH PATCH REPORT
|
|
|
462fb2 |
=================
|
|
|
462fb2 |
|
|
|
462fb2 |
Bash-Release: 4.2
|
|
|
462fb2 |
Patch-ID: bash42-019
|
|
|
462fb2 |
|
|
|
462fb2 |
Bug-Reported-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
|
|
|
462fb2 |
Bug-Reference-ID: <CAGOxLdHcSQu3ck9Qy3pRjj_NBU5tAPSAvNm-95-nLQ9Szwb6aA@mail.gmail.com>
|
|
|
462fb2 |
Bug-Reference-URL: lists.gnu.org/archive/html/bug-bash/2011-09/msg00047.html
|
|
|
462fb2 |
|
|
|
462fb2 |
Bug-Description:
|
|
|
462fb2 |
|
|
|
462fb2 |
Using `declare' with attributes and an invalid array variable name or
|
|
|
462fb2 |
assignment reference resulted in a segmentation fault instead of a
|
|
|
462fb2 |
declaration error.
|
|
|
462fb2 |
|
|
|
462fb2 |
Patch (apply with `patch -p0'):
|
|
|
462fb2 |
|
|
|
462fb2 |
*** ../bash-4.2-patched/builtins/declare.def 2010-05-30 18:25:21.000000000 -0400
|
|
|
462fb2 |
--- builtins/declare.def 2011-09-15 15:20:20.000000000 -0400
|
|
|
462fb2 |
***************
|
|
|
462fb2 |
*** 514,517 ****
|
|
|
462fb2 |
--- 514,522 ----
|
|
|
462fb2 |
var = assign_array_element (name, value, 0); /* XXX - not aflags */
|
|
|
462fb2 |
*subscript_start = '\0';
|
|
|
462fb2 |
+ if (var == 0) /* some kind of assignment error */
|
|
|
462fb2 |
+ {
|
|
|
462fb2 |
+ assign_error++;
|
|
|
462fb2 |
+ NEXT_VARIABLE ();
|
|
|
462fb2 |
+ }
|
|
|
462fb2 |
}
|
|
|
462fb2 |
else if (simple_array_assign)
|
|
|
462fb2 |
*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
|
|
|
462fb2 |
--- patchlevel.h Thu Feb 24 21:41:34 2011
|
|
|
462fb2 |
***************
|
|
|
462fb2 |
*** 26,30 ****
|
|
|
462fb2 |
looks for to find the patch level (for the sccs version string). */
|
|
|
462fb2 |
|
|
|
462fb2 |
! #define PATCHLEVEL 18
|
|
|
462fb2 |
|
|
|
462fb2 |
#endif /* _PATCHLEVEL_H_ */
|
|
|
462fb2 |
--- 26,30 ----
|
|
|
462fb2 |
looks for to find the patch level (for the sccs version string). */
|
|
|
462fb2 |
|
|
|
462fb2 |
! #define PATCHLEVEL 19
|
|
|
462fb2 |
|
|
|
462fb2 |
#endif /* _PATCHLEVEL_H_ */
|