[postgis-tickets] [PostGIS] #2697: ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process, possibly corrupts shared memory

PostGIS trac at osgeo.org
Thu Apr 3 11:55:22 PDT 2014


#2697: ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process,
possibly corrupts shared memory
---------------------+------------------------------------------------------
 Reporter:  kochb    |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.1.3
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by kochb):

 One other instance:

 {{{
 ST_GeomFromGeoJSON('{"type":"Polygon","coordinates":[1]}')
 }}}

 But other odd ones are just fine:
 {{{
 ST_GeomFromGeoJSON('{"type":"Polygon","coordinates":[[1],[1]]}')
 ST_GeomFromGeoJSON('{"type":"MultiPolygon","coordinates":[1]}')
 ST_GeomFromGeoJSON('{"type":"MultiPolygon","coordinates":[1,1]}')
 }}}

 Haven't been able to trigger this with numerous other geometry types.
 Might be simply restricted to one dimensional arrays on polygon GeoJSON.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2697#comment:2>
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