[postgis-tickets] [PostGIS] #2619: SIGSEGV in ST_GeomFromGeoJSON with empty list of coordinates

PostGIS trac at osgeo.org
Wed Jan 29 00:59:00 PST 2014


#2619: SIGSEGV in ST_GeomFromGeoJSON with empty list of coordinates
---------------------+------------------------------------------------------
 Reporter:  mwanner  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.2
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 As reported by Debian user Jérémy Lal postgis-2.1.0 crashes the Postgres
 backend when given the following query:

 {{{
 SELECT ST_GeomFromGeoJSON('{"type":"Polygon",
                             "bbox":[1,5,2,6],
                             "coordinates":[]}')::box2d;
 }}}

 I can reprodude this issue with 2.1.1.  I found a related issue #2546 as
 well as commit r8690, which seems to have fixed this before, but given
 it's 2 years ago, I'm assuming that's included in 2.1.1.

 The original report can be found here:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728724

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