summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/readline/readline/readline82-002.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-28 22:50:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-30 22:25:43 +0000
commit135c4f7b560073a1f9444ccc36402e0721b1dae1 (patch)
treeeec030089e66cfae765ff27f08ed9b347a974b70 /meta/recipes-core/readline/readline/readline82-002.patch
parentd5d10db429917026b331279288bab9af31447316 (diff)
downloadpoky-135c4f7b560073a1f9444ccc36402e0721b1dae1.tar.gz
readline: Apply patches from readline-8.2-patches
These patches are submitted/backported to 8.2 release and address issues reported by different distros. (From OE-Core rev: c74048f5ff2e90b06c7a6d5866db4b94a6f1539d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/readline/readline/readline82-002.patch')
-rw-r--r--meta/recipes-core/readline/readline/readline82-002.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-core/readline/readline/readline82-002.patch b/meta/recipes-core/readline/readline/readline82-002.patch
new file mode 100644
index 0000000000..5629685dc1
--- /dev/null
+++ b/meta/recipes-core/readline/readline/readline82-002.patch
@@ -0,0 +1,51 @@
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
18Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
19Signed-off-by: Khem Raj <raj.khem@gmail.com>
20
21*** ../readline-8.2-patched/display.c 2022-04-05 10:47:31.000000000 -0400
22--- display.c 2022-12-13 13:11:22.000000000 -0500
23***************
24*** 2684,2692 ****
25
26 if (visible_line)
27! {
28! temp = visible_line;
29! while (*temp)
30! *temp++ = '\0';
31! }
32 rl_on_new_line ();
33 forced_display++;
34--- 2735,2740 ----
35
36 if (visible_line)
37! memset (visible_line, 0, line_size);
38!
39 rl_on_new_line ();
40 forced_display++;
41*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
42--- patchlevel 2014-03-21 08:28:40.000000000 -0400
43***************
44*** 1,3 ****
45 # Do not edit -- exists only for use by patch
46
47! 1
48--- 1,3 ----
49 # Do not edit -- exists only for use by patch
50
51! 2