Opened 9 years ago

Closed 8 years ago

#582 closed defect (fixed)

GEOSGetCentroid seg faults on certain MultiPolygons

Reported by: dazuma Owned by: strk
Priority: blocker Milestone: 3.3.9
Component: Default Version: 3.3.4
Severity: Critical Keywords: history 3.3.8
Cc:

Description

Consider the following MultiPolygon?:

MULTIPOLYGON(EMPTY, ((0 1, 1 1, 1 0, 0 0, 0 1)))

I'm not completely clear on whether this should be considered a valid MultiPolygon?. Most calls handle it fine. However, calling GEOSGetCentroid_r on it results in a segmentation fault.

The seg fault seems to happen when the MultiPolygon? contains at least one EMPTY polygon *and* at least one non-empty polygon. MultiPolygons? containing only EMPTYs or only non-emptys work fine.

Change History (6)

comment:1 Changed 9 years ago by strk

Milestone: 3.3.53.3.6
Severity: UnassignedCritical

comment:2 Changed 8 years ago by strk

Milestone: 3.3.63.3.7
Priority: majorblocker

comment:3 Changed 8 years ago by strk

Milestone: 3.3.73.3.x

comment:4 Changed 8 years ago by strk

Owner: changed from geos-devel@… to strk
Status: newassigned

I'm on it.

comment:5 Changed 8 years ago by strk

Keywords: history 3.3.8 added

r3773 in trunk, r3774 in 3.3 branch

comment:6 Changed 8 years ago by strk

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.