nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] [patch] fix segfault when finding a lock file with a long n


From: Benno Schulenberg
Subject: [Nano-devel] [patch] fix segfault when finding a lock file with a long name
Date: Wed, 06 Apr 2016 10:59:00 +0200

Hi all,

Nano will go astray or segfault when it finds a lock file for a file
with a very long name -- depending on the locale, more than about 70
characters long.  To reproduce, run the following:

    nano qqqqqq...   (type 128 q's)

Then, in another terminal, do 'killall nano'.  Then run the same
'nano qqqqqq...' again.  It will find the lockfile, will want to ask
a question, will write outside of the allocated space, and will crash.

Bug was reported by Aapo Rantalainen in
    https://savannah.gnu.org/bugs/?47511.

Attached patch fixes this.
Comments welcome.

Benno

-- 
http://www.fastmail.com - The professional email service

Attachment: 0001-files-allocate-enough-space-for-the-prompt-when-find.patch
Description: Text Data


reply via email to

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