libedit applications segfault when passed long strings

Bug #1821528 reported by Tasos Sahanidis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libedit (Ubuntu)
New
Undecided
Unassigned

Bug Description

Applications using libedit to process user input segfault on Ubuntu 19.04 when they are passed a long input string. The issue can easily be reproduced with the example programs bundled with the library.

The issue has been fixed in upstream NetBSD by this diff https://github.com/IIJ-NetBSD/netbsd-src/commit/2a926170e92dc4ab635b3c94c1e1bbbcc7f9494c , however the latest Linux port release (libedit-20181209-3.1.tar.gz) does not contain this fix.

Applying it manually does indeed correct the issue, and the affected applications no longer crash.

I have contacted the Linux port maintainer and I am awaiting for a response, however I would like to see this fixed in disco.

Cosmic and older are not affected.

I have attached a log demonstrating a crash, compiled with AddressSanitizer.

Revision history for this message
Tasos Sahanidis (tatokis) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.