]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/readline/readline82-002
Merge branch 'next'
[people/pmueller/ipfire-2.x.git] / src / patches / readline / readline82-002
CommitLineData
e9ba050b
AB
1 READLINE PATCH REPORT
2 =====================
3
4Readline-Release: 8.2
5Patch-ID: readline82-002
6
7Bug-Reported-by: srobertson@peratonlabs.com
8Bug-Reference-ID:
9Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00049.html
10
11Bug-Description:
12
13It's possible for readline to try to zero out a line that's not null-
14terminated, leading to a memory fault.
15
16Patch (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