]> 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)
commit51dd54ba79cc4b42a77c5246853a5794f44e1818
treeb62a079422b43bef316d67e713e5631cb0ac6de5
parentf9643d0d6dd303a6733f8b3015c7659680e7fe42
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