[postgis-tickets] [PostGIS] #4806: ST_GeogFromWKB crashes server with segfault

PostGIS trac at osgeo.org
Tue Dec 1 07:41:41 PST 2020


#4806: ST_GeogFromWKB crashes server with segfault
------------------------+---------------------------
  Reporter:  pimpaa     |      Owner:  pramsey
      Type:  defect     |     Status:  closed
  Priority:  high       |  Milestone:  PostGIS 3.2.0
 Component:  postgis    |    Version:  2.5.x
Resolution:  duplicate  |   Keywords:
------------------------+---------------------------

Comment (by komzpa):

 Cannot reproduce on 3.0.3. Can you update to 2.5.5 and see if it's still
 an issue? There were a bunch of related fixes in 2.5.4.

 {{{
 18:39:42 [gis] > SELECT
 ST_GeogFromText(ST_asBinary(ST_GeomFromText('POINT(1 1)'))::text);
 ERROR:  XX000: parse error - invalid geometry
 HINT:  "\x" <-- parse error at position 2 within geometry
 LOCATION:  pg_parser_errhint, lwgeom_pg.c:183
 Time: 0,597 ms
 18:39:47 [gis] > select postgis_full_version();
 ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
 │
 postgis_full_version
 │
 ├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
 │ POSTGIS="3.0.3 6660953" [EXTENSION] PGSQL="130" GEOS="3.9.0-CAPI-1.14.0"
 SFCGAL="1.3.7" PROJ="7.1.0" GDAL="GDAL 3.1.3, released 2020/09/01"
 LIBXML="2.9.10" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.4.3
 (Internal)" TOPOLOGY RASTER │
 └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 (1 row)

 Time: 98,477 ms
 }}}

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