Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group