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.
Note:
See TracTickets
for help on using tickets.
Fixed in r3080