[postgis-tickets] [PostGIS] #3704: ST_AsX3D returns random data / crashes client

PostGIS trac at osgeo.org
Fri Jun 23 21:02:27 PDT 2017


#3704: ST_AsX3D returns random data / crashes client
-------------------------+---------------------------
  Reporter:  Mike Toews  |      Owner:  robe
      Type:  defect      |     Status:  closed
  Priority:  critical    |  Milestone:  PostGIS 2.3.3
 Component:  postgis     |    Version:  2.3.x
Resolution:  fixed       |   Keywords:
-------------------------+---------------------------

Comment (by robe):

 okay figured out why garden test didn't pick this up.
 It was testing this:


 {{{
 SELECT ST_AsX3D(foo1.the_geom, 3, 5)  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;
 }}}


 Which because of the limit never got to testing LINESTRING EMPTY.  Guess I
 got to increase the limit on this so covers the number of empties.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3704#comment:5>
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-tickets mailing list