Opened 14 years ago

Closed 14 years ago

#361 closed defect (fixed)

WKTReader Segfault

Reported by: crundel Owned by: pramsey
Priority: major Milestone:
Component: C API Version: 3.2.0
Severity: Unassigned Keywords:
Cc:

Description

I have been able to produce a segfault in the GEOS C API when attempting to read in a invalid WKT string, specifically "POLYGON( EMPTY, (1 1,2 2,1 2,1 1))". This occurs in both rgeos and shapely.

I have not looked at the source but seems likely that GEOS is attempting to add the hole to the NULL outer ring causing the segfault. Even through the wkt is invalid, gracefully handling the error would be nice.

Change History (1)

comment:1 by strk, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r3080

Note: See TracTickets for help on using tickets.