[GRASS-dev] i.find broken in CVS

Paul Kelly paul-grass at stjohnspoint.co.uk
Tue Jun 27 10:31:14 EDT 2006


Hello Hamish/Brad
I've fixed this now:

On Tue, 27 Jun 2006, Hamish wrote:

> Hi,
>
> a recent change makes i.find segfault.
>
[...]
>
> it seems to break here:
>  imagery/i.find/main.c line 111, in find()
>
> while ((dp = readdir(dfd)) != NULL)

It was actually a bit before that around:
    G__file_name (dir, element, "", mapset);
    if ((dfd = opendir(dir)) == NULL)
        continue;
With the recent changes, dir was an uninitialised pointer at this point 
but G__file_name() was expecting a buffer into which it could copy its 
result.

Paul




More information about the grass-dev mailing list