7 Bug-Reported-by: Chet Ramey <chet.ramey@cwru.edu>
13 When an error occurs during the pattern removal word expansion, the shell
14 can free unallocated memory or free memory multiple times.
18 *** ../bash-3.2-patched/subst.c Tue Apr 3 16:47:19 2007
19 --- bash-3.2/subst.c Tue Jul 17 09:45:11 2007
24 ! pattern = getpattern (patstr, quoted, 1);
26 temp1 = (char *)NULL; /* shut up gcc */
30 ! /* Need to pass getpattern newly-allocated memory in case of expansion --
31 ! the expansion code will free the passed string on an error. */
32 ! temp1 = savestring (patstr);
33 ! pattern = getpattern (temp1, quoted, 1);
36 temp1 = (char *)NULL; /* shut up gcc */
37 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
38 --- bash-3.2/patchlevel.h Mon Oct 16 14:22:54 2006
41 looks for to find the patch level (for the sccs version string). */
43 ! #define PATCHLEVEL 22
45 #endif /* _PATCHLEVEL_H_ */
47 looks for to find the patch level (for the sccs version string). */
49 ! #define PATCHLEVEL 23
51 #endif /* _PATCHLEVEL_H_ */