[postgis-tickets] [PostGIS] #4073: [raster] ST_AsRaster crashes when geometry touches pixels near a boundary

PostGIS trac at osgeo.org
Fri Apr 20 06:49:22 PDT 2018


#4073: [raster] ST_AsRaster crashes when geometry touches pixels near a boundary
----------------------------------+---------------------------
 Reporter:  lightinthedark        |      Owner:  Bborie Park
     Type:  defect                |     Status:  new
 Priority:  medium                |  Milestone:  PostGIS 2.4.5
Component:  raster                |    Version:  2.4.x
 Keywords:  ST_AsRaster segfault  |
----------------------------------+---------------------------
 The following query causes a segfault (process terminated with signal 11)

 {{{
 SELECT ST_AsRaster(
       ST_GeomFromText('POLYGON((4.5 3, 4.5 2.001, 3.5 1.999, 4.5 3))'),
       1::FLOAT, 1::FLOAT,
       0, 0, '1BB', 1, 0, 0, 0, true
   );
 }}}

 Changing the “touched” parameter to false or reducing the precision of the
 y value of the 2nd or 3rd points eliminates the error.

 ----
 Running the [https://hub.docker.com/r/mdillon/postgis/
 mdillon/postgis:9.6-alpine] docker image.

 SELECT PostGIS_Full_Version();
 {{{
 POSTGIS="2.4.3" PGSQL="96" GEOS="3.6.2-CAPI-1.10.2 4d2925d6" PROJ="Rel.
 4.9.3, 15 August 2016" GDAL="GDAL 2.2.3, released 2017/11/20"
 LIBXML="2.9.5" LIBJSON="0.12.1" LIBPROTOBUF="1.2.1" (core procs from
 "2.4.3" need upgrade) TOPOLOGY (topology procs from "2.4.3" need upgrade)
 RASTER (raster procs from "2.4.3" need upgrade)
 }}}

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