json-glib: update to 1.10.6
[oi-userland.git] / components / library / readline / patches / readline82-002.patch
blob453b9b85ddb680a347869b0cfee920a1189433a4
1 READLINE PATCH REPORT
2 =====================
4 Readline-Release: 8.2
5 Patch-ID: readline82-002
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 *** ../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 ****
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++;
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
44 ! 1
45 --- 1,3 ----
46 # Do not edit -- exists only for use by patch
48 ! 2