[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! :)
check-if-filelist-is-null.patch
Description: Text Data
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, (continued)
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/03
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Rishabh Dave, 2016/06/03
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/05
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Rishabh Dave, 2016/06/07
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/07
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/08
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Rishabh Dave, 2016/06/08
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/08
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory,
Rishabh Dave <=
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/08
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Rishabh Dave, 2016/06/09
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/11
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Rishabh Dave, 2016/06/12
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/12
- Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory, Benno Schulenberg, 2016/06/16