bash-4.2-021.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-021
  5. Bug-Reported-by: Dan Douglas <ormaaj@gmail.com>
  6. Bug-Reference-ID: <4585554.nZWb4q7YoZ@smorgbox>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00084.html
  8. Bug-Description:
  9. Using `read -N' to assign values to an array can result in NUL values being
  10. assigned to some array elements. These values cause seg faults when referenced
  11. later.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-4.2-patched/builtins/read.def 2011-11-21 18:03:38.000000000 -0500
  14. --- ./builtins/read.def 2011-12-19 19:52:12.000000000 -0500
  15. ***************
  16. *** 738,742 ****
  17. }
  18. else
  19. ! var = bind_read_variable (varname, t);
  20. }
  21. else
  22. --- 775,779 ----
  23. }
  24. else
  25. ! var = bind_read_variable (varname, t ? t : "");
  26. }
  27. else
  28. ***************
  29. *** 799,803 ****
  30. }
  31. else
  32. ! var = bind_read_variable (list->word->word, input_string);
  33. if (var)
  34. --- 836,840 ----
  35. }
  36. else
  37. ! var = bind_read_variable (list->word->word, input_string ? input_string : "");
  38. if (var)
  39. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  40. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  41. ***************
  42. *** 26,30 ****
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 20
  45. #endif /* _PATCHLEVEL_H_ */
  46. --- 26,30 ----
  47. looks for to find the patch level (for the sccs version string). */
  48. ! #define PATCHLEVEL 21
  49. #endif /* _PATCHLEVEL_H_ */