]>
Commit | Line | Data |
---|---|---|
56ba7d19 MT |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 4.3 | |
5 | Patch-ID: bash43-021 | |
6 | ||
7 | Bug-Reported-by: Jared Yanovich <slovichon@gmail.com> | |
8 | Bug-Reference-ID: <20140625225019.GJ17044@nightderanger.psc.edu> | |
9 | Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00070.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | When the readline `revert-all-at-newline' option is set, pressing newline | |
14 | when the current line is one retrieved from history results in a double free | |
15 | and a segmentation fault. | |
16 | ||
17 | Patch (apply with `patch -p0'): | |
18 | ||
19 | *** ../bash-4.3-patched/lib/readline/misc.c 2012-09-01 18:03:11.000000000 -0400 | |
20 | --- lib/readline/misc.c 2014-06-30 13:41:19.000000000 -0400 | |
21 | *************** | |
22 | *** 462,465 **** | |
23 | --- 462,466 ---- | |
24 | /* Set up rl_line_buffer and other variables from history entry */ | |
25 | rl_replace_from_history (entry, 0); /* entry->line is now current */ | |
26 | + entry->data = 0; /* entry->data is now current undo list */ | |
27 | /* Undo all changes to this history entry */ | |
28 | while (rl_undo_list) | |
29 | *************** | |
30 | *** 469,473 **** | |
31 | FREE (entry->line); | |
32 | entry->line = savestring (rl_line_buffer); | |
33 | - entry->data = 0; | |
34 | } | |
35 | entry = previous_history (); | |
36 | --- 470,473 ---- | |
37 | ||
38 | *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500 | |
39 | --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400 | |
40 | *************** | |
41 | *** 26,30 **** | |
42 | looks for to find the patch level (for the sccs version string). */ | |
43 | ||
44 | ! #define PATCHLEVEL 20 | |
45 | ||
46 | #endif /* _PATCHLEVEL_H_ */ | |
47 | --- 26,30 ---- | |
48 | looks for to find the patch level (for the sccs version string). */ | |
49 | ||
50 | ! #define PATCHLEVEL 21 | |
51 | ||
52 | #endif /* _PATCHLEVEL_H_ */ |