Opened 16 years ago

Closed 16 years ago

#2424 closed defect (fixed)

gdal_grid crashes on features with NULL geometry or no point geometry on a layer

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.3
Component: Utilities Version: 1.5.0
Severity: normal Keywords: gdal_grid
Cc:

Description

        hGeom = OGR_F_GetGeometryRef( hFeat );

        // FIXME: handle collections
        if ( OGR_G_GetGeometryType( hGeom ) == wkbPoint
             || OGR_G_GetGeometryType( hGeom ) == wkbPoint25D )
        {

-->hGeom is not tested for NULL

Change History (1)

comment:1 by Even Rouault, 16 years ago

Resolution: fixed
Status: newclosed
Summary: gdal_grid crashes on features with NULL geometrygdal_grid crashes on features with NULL geometry or no point geometry on a layer

A crash could also occur when no point geometry was found on a layer.

Fixed in trunk in r14705 and in branches/1.5 in r14706

Note: See TracTickets for help on using tickets.