Package: readline / 7.0-5

Metadata

Package Version Patches format
readline 7.0-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
readline70 001.diff | (download)

history.c | 6 5 + 1 - 0 !
patchlevel | 2 1 + 1 - 0 !
2 files changed, 6 insertions(+), 2 deletions(-)


Readline-7.0 changed the way the history list is initially allocated to reduce
the number of reallocations and copies.  Users who set the readline
history-size variable to a very large number to essentially unlimit the size
of the history list will get memory allocation errors 

readline70 002.diff | (download)

history.c | 16 7 + 9 - 0 !
patchlevel | 2 1 + 1 - 0 !
2 files changed, 8 insertions(+), 10 deletions(-)


There is a race condition in add_history() that can be triggered by a fatal
signal arriving between the time the history length is updated and the time
the history list update is completed. A later attempt to reference an
invalid history entry can cause a crash.

readline70 003.diff | (download)

input.c | 1 1 + 0 - 0 !
patchlevel | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 1 deletion(-)


Readline-7.0 uses pselect(2) to allow readline to handle signals that do not
interrupt read(2), such as SIGALRM, before reading another character.  The
signal mask used in the pselect call did not take into account signals the
calling application blocked before calling readline().

rl attribute.diff | (download)

readline.h | 2 1 + 1 - 0 !
rlstdc.h | 8 4 + 4 - 0 !
2 files changed, 5 insertions(+), 5 deletions(-)

---
rl header.diff | (download)

history.h | 1 1 + 0 - 0 !
readline.h | 1 1 + 0 - 0 !
2 files changed, 2 insertions(+)

---
rl no cross check.diff | (download)

configure | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
rl no rpath.diff | (download)

support/shobj-conf | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
rlfe history.diff | (download)

examples/rlfe/rlfe.c | 17 11 + 6 - 0 !
1 file changed, 11 insertions(+), 6 deletions(-)

---
rlfe kfreebsd.diff | (download)

examples/rlfe/pty.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
rlfe tinfo.diff | (download)

examples/rlfe/configure | 201 103 + 98 - 0 !
examples/rlfe/configure.in | 4 2 + 2 - 0 !
2 files changed, 105 insertions(+), 100 deletions(-)

---
fix wformat security.diff | (download)

examples/rlfe/rlfe.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix compiling with -werror=format-security.
 Prevents format string attacks.
configure tinfo.diff | (download)

aclocal.m4 | 4 2 + 2 - 0 !
configure | 66 39 + 27 - 0 !
2 files changed, 41 insertions(+), 29 deletions(-)

---
rlfe signal rvt.diff | (download)

examples/rlfe/pty.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---