pgsql: Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()
Date: 2015-12-27 16:04:45
Message-ID: E1aDDoL-0001MH-Qd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()

Both Blowfish and DES implementations of crypt() can take arbitrarily
long time, depending on the number of rounds specified by the caller;
make sure they can be interrupted.

Author: Andreas Karlsson
Reviewer: Jeff Janes

Backpatch to 9.1.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c886c30cc8731a3fab989a2b361fd38c5bb1ad53

Modified Files
--------------
contrib/pgcrypto/crypt-blowfish.c | 3 +++
contrib/pgcrypto/crypt-des.c | 3 +++
2 files changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-12-28 13:51:25 pgsql: Fix translation domain in pg_basebackup
Previous Message Tom Lane 2015-12-26 18:41:59 pgsql: Include typmod when complaining about inherited column type mism