[postgis-tickets] [PostGIS] #4437: pgsql2shp makes dangerous call to liblwgeom on POINT EMPTY

PostGIS trac at osgeo.org
Wed Jun 26 02:23:06 PDT 2019


#4437: pgsql2shp makes dangerous call to liblwgeom on POINT EMPTY
---------------------------+---------------------------
 Reporter:  strk           |      Owner:  robe
     Type:  defect         |     Status:  new
 Priority:  critical       |  Milestone:  PostGIS 2.5.3
Component:  loader/dumper  |    Version:  trunk
 Keywords:                 |
---------------------------+---------------------------
 It looks like dumping empty points is doing bad things from dumper:

 {{{
 $ pgsql2shp pg25 "select 'POINT EMPTY'::geometry"
 Initializing...
 Done (postgis major version: 3).
 Output shape: Point
 Dumping: Xlwgeom_api.c [135] called with n=0 and npoints=0
 }}}

 I tested this in current trunk (r17559) but I suspect it happens in older
 versions too. BTW, that message was once an ERROR or fatal assertion, and
 only "recently" (?) turned into a notice instead.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4437>
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