#4769 closed defect (fixed)

Calling st_addband() crashes server

Reported by: Robins Owned by: Algunenano
Priority: medium Milestone: PostGIS 2.4.10
Component: raster Version: 2.4.x
Keywords: st_addband Cc:

Description

Brief

Calling st_addband() crashes the server.

Repro

SELECT st_addband(NULL, NULL::_raster, 1, 1);

SQL Output

db=> SELECT version();
-[ RECORD 1 ]---------------------------------------------------------------------------------------------------
version | PostgreSQL 13.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6), 64-bit

db=> SELECT postgis_full_version();
-[ RECORD 1 ]--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
postgis_full_version | POSTGIS="3.0.2 2fb2a18" [EXTENSION] PGSQL="130" GEOS="3.8.0-CAPI-1.13.1 " PROJ="Rel. 5.2.0, September 15th, 2018" GDAL="GDAL 2.4.4, released 2020/01/08" LIBXML="2.9.1" LIBJSON="0.13.1" LIBPROTOBUF="1.3.2" WAGYU="0.4.3 (Internal)" TOPOLOGY RASTER

db=> SELECT st_addband(NULL, NULL::_raster, 1, 1);
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!?>

Change History (5)

comment:1 by Algunenano, 21 months ago

Milestone: PostGIS 3.1.0PostGIS 2.4.10
Owner: changed from Bborie Park to Algunenano
Version: 3.0.x2.4.x

comment:2 by Raúl Marín <git@…>, 20 months ago

In 23c15ff/git:

Fix segfault in st_addband

References #4769
Closes https://github.com/postgis/postgis/pull/585/

comment:3 by Raúl Marín <git@…>, 20 months ago

In 8665298/git:

Fix segfault in st_addband

References #4769
Closes https://github.com/postgis/postgis/pull/585/

comment:4 by Raúl Marín <git@…>, 20 months ago

In 279df53/git:

Fix segfault in st_addband

References #4769

comment:5 by Raúl Marín <git@…>, 20 months ago

Resolution: fixed
Status: newclosed

In e4c7a1f/git:

Fix segfault in st_addband

Closes #4769

Note: See TracTickets for help on using tickets.