[PostGIS] #5785: ST_MapAlgebra segfaults when expression references a supernumerary rast argument

PostGIS trac at osgeo.org
Sun Sep 29 09:12:01 PDT 2024


#5785: ST_MapAlgebra segfaults when expression references a supernumerary rast
argument
---------------------+---------------------------
 Reporter:  dmfay    |      Owner:  pramsey
     Type:  patch    |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.5.1
Component:  postgis  |    Version:  3.4.x
 Keywords:           |
---------------------+---------------------------
 I had a copy-paste error go a little bit more wrong than I'd have
 expected. This query reproduces the problem (this will segfault your
 server!):

 {{{
 select
   st_mapalgebra(
     c.rast,
     '8BUI',
     '[rast2.val] + 1'
   ) as rast
 from st_addband(st_makeemptyraster(100, 100, 0.0, 0.0, 1.0), 1, '8BUI') as
 c (rast);
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5785>
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