perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / shell / bash / patches / bash52-022.patch
blob557d387067a03c3868e59c527777614428845cd7
1 BASH PATCH REPORT
2 =================
4 Bash-Release: 5.2
5 Patch-ID: bash52-022
7 Bug-Reported-by: srobertson@peratonlabs.com
8 Bug-Reference-ID:
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00049.html
11 Bug-Description:
13 It's possible for readline to try to zero out a line that's not null-
14 terminated, leading to a memory fault.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.2-patched/lib/readline/display.c 2022-04-05 10:47:31.000000000 -0400
19 --- lib/readline/display.c 2022-12-13 13:11:22.000000000 -0500
20 ***************
21 *** 2684,2692 ****
23 if (visible_line)
24 ! {
25 ! temp = visible_line;
26 ! while (*temp)
27 ! *temp++ = '\0';
28 ! }
29 rl_on_new_line ();
30 forced_display++;
31 --- 2735,2740 ----
33 if (visible_line)
34 ! memset (visible_line, 0, line_size);
36 rl_on_new_line ();
37 forced_display++;
39 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
40 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
41 ***************
42 *** 26,30 ****
43 looks for to find the patch level (for the sccs version string). */
45 ! #define PATCHLEVEL 21
47 #endif /* _PATCHLEVEL_H_ */
48 --- 26,30 ----
49 looks for to find the patch level (for the sccs version string). */
51 ! #define PATCHLEVEL 22
53 #endif /* _PATCHLEVEL_H_ */