[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [patch] fix segfault when finding a lock file with a lo
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [patch] fix segfault when finding a lock file with a long name |
Date: |
Sun, 10 Apr 2016 11:39:48 +0200 |
On Wed, Apr 6, 2016, at 10:59, Benno Schulenberg wrote:
> 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.
Patch was applied to git, fb9585e.
Benno
--
http://www.fastmail.com - mmm... Fastmail...