Frank,

In the file shptree.c on line 261  (psShape = SHPReadObject( hSHP, iShape
);) in function SHPCreateTree() when the call to SHPReadObject() returns
NULL the code crashes because the following line (262) tries to use the
psShape pointer without checking if it is NULL.  SHPReadObject() correctly
captures the error but stills fails in SHPCreateTree().  I know the shape
file is probably invalid but other shape drivers handle it correctly so it
would be nice if you could stick an if (psShape == NULL) check in there so
it doesn't just crash hard. If you need a file that does this please let me
know and I will send it to you.

Best regards,
Martin


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to