[GRASS-dev] [bug #4987] (grass) malloc errors/declaration - 64 bit problems

Māris Nartišs maris.gis at gmail.com
Thu Aug 10 15:52:32 EDT 2006


Hi,

my C skills are too poor to understand it.

Modified regex poped up also
./raster/r.lake/main.c:    in_terran = G_malloc(rows * sizeof(FCELL *));

So - in brief- how it should look to be correct and safe?

Maris.

On Thursday 10 August 2006 16:54, Markus Neteler wrote:
> On Tue, Aug 08, 2006 at 06:43:12PM +0100, Glynn Clements wrote:
> > Request Tracker wrote:
> > > this bug's URL: http://intevation.de/rt/webrt?serial_num=4987
> > > Subject: malloc errors/declaration - 64 bit problems
>
> The modified regex from Roberto shows numerous further
> candidates:
>
> egrep -R 'sizeof[ \t]*\([ \t]*[a-Z]+[ \t]*\*' . |grep [ch]: | grep -v void
>
> It would be good to fix at least the dangerous ones.
>
> Markus
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev




More information about the grass-dev mailing list