Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#5785 closed patch (fixed)

ST_MapAlgebra segfaults when expression references a supernumerary rast argument

Reported by: dmfay Owned by: robe
Priority: medium Milestone: PostGIS 3.3.8
Component: raster Version: 3.4.x
Keywords: Cc: dmfay

Description

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);

Attachments (1)

0001-fix-Prevent-ST_MapAlgebra-segfault-specifying-rast2-.patch (2.2 KB ) - added by dmfay 4 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 by robe, 4 months ago

Component: postgisraster
Owner: changed from pramsey to robe

comment:2 by Regina Obe <lr@…>, 4 months ago

In acf75fe/git:

FIX for segfault in ST_MapAlgebra
References #5785 for PostGIS 3.6.0
Author: Dian M Fay

comment:3 by robe, 4 months ago

Milestone: PostGIS 3.5.1PostGIS 3.4.4

comment:4 by Regina Obe <lr@…>, 4 months ago

In 1d23ccf/git:

FIX for segfault in ST_MapAlgebra
References #5785 for PostGIS 3.5.1
Author: Dian M Fay

comment:5 by Regina Obe <lr@…>, 4 months ago

Resolution: fixed
Status: newclosed

In 5e0838c/git:

FIX for segfault in ST_MapAlgebra
Closes #5785 for PostGIS 3.4.4
Author: Dian M Fay

comment:6 by Regina Obe <lr@…>, 4 months ago

In fbc9c5b/git:

FIX for segfault in ST_MapAlgebra
References #5785 for PostGIS 3.3.8
Author: Dian M Fay

comment:7 by robe, 4 months ago

Milestone: PostGIS 3.4.4PostGIS 3.3.8
Note: See TracTickets for help on using tickets.