]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/readline/readline63-002
gcc: Fix building with glibc >= 2.28
[people/pmueller/ipfire-2.x.git] / src / patches / readline / readline63-002
CommitLineData
c02899be
MT
1 READLINE PATCH REPORT
2 =====================
3
4Readline-Release: 6.3
5Patch-ID: readline63-002
6
7Bug-Reported-by: Anatol Pomozov <anatol.pomozov@gmail.com>
8Bug-Reference-ID: <CAOMFOmXy3mT2So5GQ5F-smCVArQuAeBwZ2QKzgCtMeXJoDeYOQ@mail.gmail.com>
9Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00010.html
10
11Bug-Description:
12
13When in callback mode, some readline commands can cause readline to seg
14fault by passing invalid contexts to callback functions.
15
16Patch (apply with `patch -p0'):
17
18*** ../readline-6.3/readline.c 2013-10-28 14:58:06.000000000 -0400
19--- readline.c 2014-03-10 14:15:02.000000000 -0400
20***************
21*** 745,749 ****
22
23 RL_CHECK_SIGNALS ();
24! if (r == 0) /* success! */
25 {
26 _rl_keyseq_chain_dispose ();
27--- 745,750 ----
28
29 RL_CHECK_SIGNALS ();
30! /* We only treat values < 0 specially to simulate recursion. */
31! if (r >= 0 || (r == -1 && (cxt->flags & KSEQ_SUBSEQ) == 0)) /* success! or failure! */
32 {
33 _rl_keyseq_chain_dispose ();
34*** ../readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
35--- patchlevel 2014-03-21 08:28:40.000000000 -0400
36***************
37*** 1,3 ****
38 # Do not edit -- exists only for use by patch
39
40! 1
41--- 1,3 ----
42 # Do not edit -- exists only for use by patch
43
44! 2