Opened 4 months ago

Closed 4 months ago

Last modified 2 months ago

#6844 closed defect (fixed)

gdal_rasterize crashes on empty polygon coming from JSon geometries

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.4
Component: Algorithms Version: unspecified
Severity: normal Keywords: rasterize
Cc:

Description

A crash occurs in GDALdllImageFilledPolygon () on a polygon with an empty ring, such as the one produced by:

{
"type": "FeatureCollection",
"name": "cutline",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ ] ] } }
]
}

Change History (8)

comment:1 Changed 4 months ago by Even Rouault

Resolution: fixed
Status: assignedclosed

In 37849:

gdal_rasterize: fix crash when rasterizing empty polygon (fixes #6844)

comment:2 Changed 4 months ago by Even Rouault

In 37850:

gdal_rasterize: fix crash when rasterizing empty polygon (fixes #6844)

comment:3 Changed 4 months ago by Even Rouault

In 37852:

OGRPolygon: make IsEmpty?() return TRUE if the polygon is made of an empty ring (fixes #6844)

comment:4 Changed 4 months ago by Even Rouault

In 37853:

OGRPolygon: make IsEmpty?() return TRUE if the polygon is made of an empty ring (fixes #6844)

comment:5 Changed 2 months ago by Even Rouault

In 38221:

GeoRaster: fix cppcheck warning (refs #6844)

comment:6 Changed 2 months ago by Even Rouault

In 38222:

GeoRaster: fix cppcheck warning (refs #6844)

comment:7 Changed 2 months ago by Even Rouault

In 38224:

GeoRaster: fix cppcheck warning (refs #6844)

comment:8 Changed 2 months ago by Even Rouault

Arg, the GeoRaster commits were in fact for #6884

Note: See TracTickets for help on using tickets.