empty array can crash backend using int_array_enum from contrib.

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: empty array can crash backend using int_array_enum from contrib.
Date: 2005-04-22 10:25:11
Message-ID: 4268D107.7040503@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Using the int_array_enum function from contrib/intagg I can crash the 8.0.2 backend when I pass it an empty array.

fli=# select int_array_enum('{}'::int[]);
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.
!>

fli=# select * from version();
version
-------------------------------------------------------------------------------------
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.3 (SuSE Linux)
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dennis Vshivkov 2005-04-22 11:08:45 BUG #1617: TIME WITH TIME ZONE comparison is partially broken
Previous Message Sebastien Montagne 2005-04-22 09:00:02 pg_dump: schema with OID 17262722 does not exist