Ticket #2212 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

GeoJSON driver crashes when writing features with NULL geometry

Reported by: rouault Owned by: mloskot
Priority: normal Milestone:
Component: OGR_SF Version: 1.5.0
Severity: normal Keywords: geojson
Cc:

Description

In OGRGeoJSONWriteFeature, there's the following code :

    OGRGeometry* poGeometry = poFeature->GetGeometryRef();
    CPLAssert( NULL != poGeometry );

The CPLAssert should probably be replaced by a 'if'.

Change History

Changed 4 years ago by mloskot

  • status changed from new to assigned

Changed 4 years ago by mloskot

  • status changed from assigned to closed
  • resolution set to fixed

Thanks Even for reporting this issue. I've fixed it in the trunk (r13754)

Note: See TracTickets for help on using tickets.