bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segfault in readline 8.0 if rl_redisplay overidden


From: Gary
Subject: Segfault in readline 8.0 if rl_redisplay overidden
Date: Tue, 8 Sep 2020 11:54:15 +1200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Version 8.0
Ubuntu 20.04 Focal Fossa

If rl_display is overridden as is done in libterm-readline-gnu-perl,
i.e. for password entry, a segfault occurs
   _rl_update_final () at ./display.c:2972

See:  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941326

The attached program rl-display.c reproduces the issue.

I've attached a patch that fixes the problem.

Ngā Mihi
Gary

-- 
Catalyst IT - Open Source Technologists
DDI: +64 4 123 4567 | Mob: +64 21 123 4567 | Tel: +64 4 123 4567 |
www.catalyst.net.nz

CONFIDENTIALITY NOTICE: This email is intended for the named recipients
only. It may contain privileged, confidential or copyright information.
If you are not the named recipient, any use, reliance upon, disclosure
or copying of this email or its attachments is unauthorised. If you have
received this email in error, please reply via email or call +64 4 499 2267.

Attachment: rl-display.c
Description: Text Data

Attachment: fix.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]