]> granicus.if.org Git - postgresql/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)
commit1b6102eb73f4483eb30f3008b07882a93ff369f8
tree6de6a320345184ce573d7887bbf347c7fa6c08e0
parent7e29e7f5544d41cdf3cc2ed209ecabfa0242af04
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