[PostGIS] #5793: Crash on Buffer of Empty array on PG17
PostGIS
trac at osgeo.org
Wed Oct 9 11:43:53 PDT 2024
#5793: Crash on Buffer of Empty array on PG17
----------------------+---------------------------
Reporter: pramsey | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.5.1
Component: postgis | Version: 3.4.x
Resolution: | Keywords: pg17
----------------------+---------------------------
Comment (by pramsey):
Ladles and jelly spoons, I give you a pure PgSQL reproduction:
{{{
CREATE TABLE n (i integer);
CREATE OR REPLACE FUNCTION add(integer)
RETURNS integer
AS 'SELECT 2 * $1 + 4 * $1'
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
SELECT add(array_length(array_agg(i)::numeric[],1)::integer) FROM n;
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5793#comment:8>
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