nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] segmentation fault when trying to browse to an inaccess


From: Rishabh Dave
Subject: Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory
Date: Wed, 8 Jun 2016 22:42:12 +0530

> Would it be possible for path or dir to be NULL while filelist is
> still NULL, so that
>   present_name = mallocstrcpy(present_name, filelist[selected]);
> would crash?
>
It would be case where nano loses permission for the directory where
nano was invoked; this must happen after invoking nano but before
invoking browser. I confirmed this using valgrind. Patch is attached.

Thanks for the opportunity and the hint!  :)

Attachment: check-if-filelist-is-null.patch
Description: Text Data


reply via email to

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