bash-4.2-019.patch 1.4 KB

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