Opened 11 years ago
Closed 11 years ago
#2706 closed defect (fixed)
ST_DumpPoints crash
Reported by: | strk | Owned by: | pramsey |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.1.3 |
Component: | postgis | Version: | 2.1.x |
Keywords: | Cc: |
Description
From garden test:
SELECT ST_DumpPoints(foo1.the_geom) As result FROM ((SELECT ST_GeomFromText('POINT EMPTY',4326) As the_geom UNION ALL SELECT ST_GeomFromText('MULTIPOINT EMPTY',4326) As the_geom UNION ALL SELECT ST_GeomFromText('MULTIPOLYGON EMPTY',4326) As the_geom UNION ALL SELECT ST_GeomFromText('LINESTRING EMPTY',4326) As the_geom UNION ALL SELECT ST_GeomFromText('MULTILINESTRING EMPTY',4326) As the_geom ) ) As foo1 LIMIT 3;
Crashes the backend. Dunno which versions are affected, is to be tested.
Change History (8)
comment:1 by , 11 years ago
Milestone: | → PostGIS 2.1.3 |
---|---|
Version: | trunk → 2.1.x |
comment:3 by , 11 years ago
Doesn't take a fancy query to do it either
select st_dumppoints('POLYGON EMPTY'::geometry);
comment:4 by , 11 years ago
hmm weird. I'm pretty sure I tested those with 2.1.2 garden check. I don't think I got any crashes. I'll check again.
comment:5 by , 11 years ago
Just tried on my 2.1.2 windows install
POSTGIS="2.1.2 r12389" GEOS="3.4.2-CAPI-1.8.2 r3924" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.7.8" LIBJSON="UNKNOWN" TOPOLOGY RASTER PostgreSQL 9.3.4, compiled by Visual C++ build 1600, 64-bit
neither crash
SELECT ST_DumpPoints('POINT EMPTY'::geometry); SELECT st_dumppoints('POLYGON EMPTY'::geometry);
They just returns no records. This was the regression I mentioned (at least with POINT EMPTY between 2.0 and 2.1 though I recall POLYGON EMPTY returning the same non-answer)
comment:6 by , 11 years ago
for the record seems to only be an issue with cassert enabled so production users are not likely to be affected by this.
comment:8 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Simpler form:
2.1.2 seems to be also affected