[PostGIS] #5793: Crash on Buffer of Empty array on PG17

PostGIS trac at osgeo.org
Wed Oct 9 12:27:15 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
----------------------+---------------------------
Changes (by pramsey):

 * milestone:  PostGIS PostgreSQL => PostGIS 3.5.1

Comment:

 Actually, can get it down to this
 {{{
 CREATE TABLE n (i integer);

 CREATE OR REPLACE FUNCTION l2(numeric[])
     RETURNS integer
     AS 'SELECT array_length($1,1) + array_length($1,1)'
     LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;

 SELECT l2(array_agg(i)::numeric[]) FROM n;
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5793#comment:10>
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