]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 27 Dec 2015 16:03:19 +0000 (13:03 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 27 Dec 2015 16:03:19 +0000 (13:03 -0300)
commitc886c30cc8731a3fab989a2b361fd38c5bb1ad53
tree900c4039b4208bcf452af36ff04361dde36f68c9
parente10838026b373f01d1de0f4f7ea80a60c30565da
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.
contrib/pgcrypto/crypt-blowfish.c
contrib/pgcrypto/crypt-des.c