2
1

bash-4.2-017.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-017
  5. Bug-Reported-by: Curtis Doty <Curtis@GreenKey.net>
  6. Bug-Reference-ID: <20110621035324.A4F70849F59@mx1.iParadigms.net>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00053.html
  8. Bug-Description:
  9. Using `read -a foo' where foo was an already-declared associative array
  10. caused the shell to die with a segmentation fault.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.2-patched/builtins/read.def 2011-01-04 11:43:36.000000000 -0500
  13. --- ./builtins/read.def 2011-06-21 10:31:02.000000000 -0400
  14. ***************
  15. *** 643,646 ****
  16. --- 642,651 ----
  17. return EXECUTION_FAILURE; /* readonly or noassign */
  18. }
  19. + if (assoc_p (var))
  20. + {
  21. + builtin_error (_("%s: cannot convert associative to indexed array"), arrayname);
  22. + xfree (input_string);
  23. + return EXECUTION_FAILURE; /* existing associative array */
  24. + }
  25. array_flush (array_cell (var));
  26. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  27. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  28. ***************
  29. *** 26,30 ****
  30. looks for to find the patch level (for the sccs version string). */
  31. ! #define PATCHLEVEL 16
  32. #endif /* _PATCHLEVEL_H_ */
  33. --- 26,30 ----
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 17
  36. #endif /* _PATCHLEVEL_H_ */