The PostgreSQL project released a new version of the PostgreSQL 9.1 branch:
This change prevents problems when there are multiple connections using OpenSSL
within a single process and not all the code involved follows the same rules
for when to clear the error queue. Failures have been reported specifically
when a client application uses SSL connections in libpq concurrently with SSL
connections using the PHP, Python, or Ruby wrappers for OpenSSL. It’s possible
for similar problems to arise within the server as well, if an extension module
establishes an outgoing SSL connection.
These could advance off the end of the input string, causing subsequent format
codes to read garbage.
This is for consistency with a behavior recently added to pg_ctl; it eases
automated testing on slow machines.
In such a case, the operator family was restored into the new database, but it
was no longer marked as part of the extension. This had no immediate ill
effects, but would cause later pg_dump runs to emit output that would cause
(harmless) errors on restore.
For Debian 7 Wheezy, these problems have been fixed in version
9.1.22-0+deb7u1.
We recommend that you upgrade your postgresql-9.1 packages.
Further information about Debian LTS security advisories, how to apply
these updates to your system and frequently asked questions can be
found at: <https://wiki.debian.org/LTS>