[postgis-devel] [PostGIS] #1038: SVG empty geometries gives invalid memory alloc
PostGIS
trac at osgeo.org
Mon Jun 20 01:51:31 PDT 2011
#1038: SVG empty geometries gives invalid memory alloc
---------------------+------------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
This is doing regression between our current 1.5.3 and 2.0.0. I haven't
tested our older 2.0.0 yet to see if it was introduced during change to
gserialize.
This fails in current 2.0.0 trunk but just returns an empty string in 1.5.
{{{
SELECT ST_AsSVG(foo1.the_geom) As result
FROM ((SELECT
ST_GeomFromText('GEOMETRYCOLLECTION EMPTY',4326) As the_geom
UNION ALL SELECT ST_GeomFromText('LINESTRING
EMPTY',4326) As the_geom
UNION ALL SELECT ST_GeomFromText('POINT
EMPTY',4326) As the_geom ) ) As foo1 LIMIT 3;
}}}
error:
{{{
ERROR: invalid memory alloc request size 4294967294
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1038>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list