]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/readline/readline82-002
readline: Update patches to patch 1 to patch 10
[ipfire-2.x.git] / src / patches / readline / readline82-002
1 READLINE PATCH REPORT
2 =====================
3
4 Readline-Release: 8.2
5 Patch-ID: readline82-002
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 *** ../readline-8.2-patched/display.c 2022-04-05 10:47:31.000000000 -0400
19 --- 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 *** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
39 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
40 ***************
41 *** 1,3 ****
42 # Do not edit -- exists only for use by patch
43
44 ! 1
45 --- 1,3 ----
46 # Do not edit -- exists only for use by patch
47
48 ! 2