libedit applications segfault when passed long strings
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:/
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.