Opened 9 years ago

Closed 9 years ago

#3461 closed defect (fixed)

ST_GeomFromKML crashes Postgres when there are innerBoundaryIs and no outerBoundaryIs

Reported by: mikksooneep Owned by: pramsey
Priority: blocker Milestone: PostGIS 2.2.2
Component: postgis Version: 2.2.x
Keywords: Cc:

Description

This bug is always reproducible.

POSTGIS="2.2.1 r14555" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.1, released 2013/08/26" LIBXML="2.9.1" LIBJSON="0.11.99" RASTER

SELECT ST_GeomFromKML('<Polygon>
                <innerBoundaryIs>
                    <LinearRing>
                        <coordinates>15.4314185364794,47.07424936394101,0 15.4319999913023,47.0745907424833,0 15.4304554154307,47.0762201181668,0 15.4297898819917,47.0762268569417,0 15.4290787803951,47.0767510408816,0 15.428814076225,47.07705890737439,0 15.4283323302523,47.0781601391252,0 15.4280670755831,47.0781119179139,0 15.428345820955,47.0773709566434,0 15.428377720989,47.0769281206226,0 15.4287760037479,47.0764644755462,0 15.429245707349,47.07569497547091,0 15.4314185364794,47.07424936394101,0</coordinates>
                    </LinearRing>
                </innerBoundaryIs>
            </Polygon>')

Change History (2)

comment:1 by robe, 9 years ago

Priority: mediumblocker

Crashes for me too even against 2.3.0 dev using 3.5.0

POSTGIS="2.3.0dev" GEOS="3.5.0-CAPI-1.9.0 r4090" PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.0.1, released 2015/09/15" LIBXML="2.7.8" LIBJSON="0.12" (core procs from "2.3.0dev" need upgrade) RASTER (raster procs from "2.3.0dev" need upgrade)

PostgreSQL 9.5.0, compiled by Visual C++ build 1800, 64-bit
Last edited 9 years ago by robe (previous) (diff)

comment:2 by pramsey, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in 2.1 at r14670, 2.2 at r14668, svn at r14669

Note: See TracTickets for help on using tickets.