|
|
287226 |
BASH PATCH REPORT
|
|
|
287226 |
=================
|
|
|
287226 |
|
|
|
287226 |
Bash-Release: 4.2
|
|
|
287226 |
Patch-ID: bash42-021
|
|
|
287226 |
|
|
|
287226 |
Bug-Reported-by: Dan Douglas <ormaaj@gmail.com>
|
|
|
287226 |
Bug-Reference-ID: <4585554.nZWb4q7YoZ@smorgbox>
|
|
|
287226 |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00084.html
|
|
|
287226 |
|
|
|
287226 |
Bug-Description:
|
|
|
287226 |
|
|
|
287226 |
Using `read -N' to assign values to an array can result in NUL values being
|
|
|
287226 |
assigned to some array elements. These values cause seg faults when referenced
|
|
|
287226 |
later.
|
|
|
287226 |
|
|
|
287226 |
Patch (apply with `patch -p0'):
|
|
|
287226 |
|
|
|
287226 |
*** ../bash-4.2-patched/builtins/read.def 2011-11-21 18:03:38.000000000 -0500
|
|
|
287226 |
--- builtins/read.def 2011-12-19 19:52:12.000000000 -0500
|
|
|
287226 |
***************
|
|
|
287226 |
*** 738,742 ****
|
|
|
287226 |
}
|
|
|
287226 |
else
|
|
|
287226 |
! var = bind_read_variable (varname, t);
|
|
|
287226 |
}
|
|
|
287226 |
else
|
|
|
287226 |
--- 775,779 ----
|
|
|
287226 |
}
|
|
|
287226 |
else
|
|
|
287226 |
! var = bind_read_variable (varname, t ? t : "");
|
|
|
287226 |
}
|
|
|
287226 |
else
|
|
|
287226 |
***************
|
|
|
287226 |
*** 799,803 ****
|
|
|
287226 |
}
|
|
|
287226 |
else
|
|
|
287226 |
! var = bind_read_variable (list->word->word, input_string);
|
|
|
287226 |
|
|
|
287226 |
if (var)
|
|
|
287226 |
--- 836,840 ----
|
|
|
287226 |
}
|
|
|
287226 |
else
|
|
|
287226 |
! var = bind_read_variable (list->word->word, input_string ? input_string : "");
|
|
|
287226 |
|
|
|
287226 |
if (var)
|
|
|
287226 |
*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
|
|
|
287226 |
--- patchlevel.h Thu Feb 24 21:41:34 2011
|
|
|
287226 |
***************
|
|
|
287226 |
*** 26,30 ****
|
|
|
287226 |
looks for to find the patch level (for the sccs version string). */
|
|
|
287226 |
|
|
|
287226 |
! #define PATCHLEVEL 20
|
|
|
287226 |
|
|
|
287226 |
#endif /* _PATCHLEVEL_H_ */
|
|
|
287226 |
--- 26,30 ----
|
|
|
287226 |
looks for to find the patch level (for the sccs version string). */
|
|
|
287226 |
|
|
|
287226 |
! #define PATCHLEVEL 21
|
|
|
287226 |
|
|
|
287226 |
#endif /* _PATCHLEVEL_H_ */
|