PostgreSQL is "an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions".
A vulnerability in PostgreSQL's repeat() allows attacker to cause the program to execute arbitrary code by overflowing an internal buffer.
Vulnerable systems:
* PostgreSQL version 7.2.0 and prior
Upon invoking a repeat() function, a src/backend/utils/adt/oracle_compat.c::repeat() function will gets called which suffers from a buffer overflow.
How to reproduce: psql> select repeat('xxx',1431655765);
pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.