[postgis-tickets] [PostGIS] #5350: ST_AsSVG crashes on geometry collection with an empty point

PostGIS trac at osgeo.org
Tue Mar 7 21:38:07 PST 2023


#5350: ST_AsSVG crashes on geometry collection with an empty point
----------------------+---------------------------
  Reporter:  robe     |      Owner:  robe
      Type:  defect   |     Status:  closed
  Priority:  blocker  |  Milestone:  PostGIS 3.4.0
 Component:  postgis  |    Version:  3.3.x
Resolution:  fixed    |   Keywords:
----------------------+---------------------------
Changes (by robe):

 * status:  new => closed
 * resolution:   => fixed
 * milestone:  PostGIS 3.0.9 => PostGIS 3.4.0

Comment:

 I thought I'd need to backport this change, but it looks like stable-3.3
 is okay and by extension I assume the others are too.

 The output in 3.3 is


 {{{
 x="2.94485e-317" y="-1.14e-321";M 0 0 l 1 -1
 }}}


 I think the crash was introduced in master with the change of using
 string_buffer.  In master, I went with just skipping empties, so output is

 {{{
 M 0 0 l 1 -1
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5350#comment:4>
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