[postgis-tickets] [PostGIS] #3275: ST_GeomFromGeoJsonof invalid GeoJSON with missing type crashes server process

PostGIS trac at osgeo.org
Thu Sep 10 23:06:12 PDT 2015


#3275: ST_GeomFromGeoJsonof invalid GeoJSON with missing type crashes server
process
-------------------------+---------------------------
  Reporter:  pdmaseberg  |      Owner:  pramsey
      Type:  defect      |     Status:  closed
  Priority:  medium      |  Milestone:  PostGIS 2.1.9
 Component:  postgis     |    Version:  2.1.x
Resolution:  worksforme  |   Keywords:
-------------------------+---------------------------
Changes (by robe):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:   => PostGIS 2.1.9


Comment:

 Hmm I can't trigger this error on my Ubuntu server running PostGIS 2.1.5:


 {{{
 POSTGIS="2.1.5 r13152" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6
 March 2012" GDAL="GDAL 1.11.2, released 2015/02/10" LIBXML="2.9.2"
 LIBJSON="UNKNOWN" RASTER

 PostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu
 4.9.2-10ubuntu13) 4.9.2, 64-bit
 }}}

 I think similar issues like this were fixed in PostGIS 2.1.8 so I would
 suggest upgrading and see if you get the same error.

 On my PostGIS 2.2.0 and 2.1.8 installs (and my 2.1.5 ubuntu install), I
 just get error:


 {{{
 ERROR:  syntax error at or near "​"
 LINE 1: ...int","crs":{"type":""},"coordinates":[-97.3361,37.6914]}');
 }}}

 So it could be an issue too with libjson library being used as well which
 might explain why the error doesn't happen on my 2.1.5.  Or the code you
 posted is the the one crashing.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3275#comment:1>
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