7 Bug-Reported-by: Jim Avera <james_avera@yahoo.com>
8 Bug-Reference-ID: <4F29E07A.80405@yahoo.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-02/msg00001.html
13 When `printf -v' is used to set an array element, the format string contains
14 `%b', and the corresponding argument is the empty string, the buffer used
15 to store the value to be assigned can be NULL, which results in NUL being
16 assigned to the array element. This causes a seg fault when it's used later.
18 Patch (apply with `patch -p0'):
20 --- a/builtins/printf.def
21 +++ b/builtins/printf.def
22 @@ -255,6 +255,8 @@ printf_builtin (list)
27 + vbuf = xmalloc (vbsize = 16);
34 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
35 looks for to find the patch level (for the sccs version string). */
37 -#define PATCHLEVEL 23
38 +#define PATCHLEVEL 24
40 #endif /* _PATCHLEVEL_H_ */