]>
Commit | Line | Data |
---|---|---|
85db98e9 AB |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 5.2 | |
5 | Patch-ID: bash52-022 | |
6 | ||
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 | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | It's possible for readline to try to zero out a line that's not null- | |
14 | terminated, leading to a memory fault. | |
15 | ||
16 | Patch (apply with `patch -p0'): | |
17 | ||
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 **** | |
22 | ||
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 ---- | |
32 | ||
33 | if (visible_line) | |
34 | ! memset (visible_line, 0, line_size); | |
35 | ! | |
36 | rl_on_new_line (); | |
37 | forced_display++; | |
38 | ||
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). */ | |
44 | ||
45 | ! #define PATCHLEVEL 21 | |
46 | ||
47 | #endif /* _PATCHLEVEL_H_ */ | |
48 | --- 26,30 ---- | |
49 | looks for to find the patch level (for the sccs version string). */ | |
50 | ||
51 | ! #define PATCHLEVEL 22 | |
52 | ||
53 | #endif /* _PATCHLEVEL_H_ */ |