]> 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)
commit743229a67e24aaee3f671bc5692100fe94c47436
tree957d27ec940b2d66d89aa6625b7678547380c800
parentfec1ad94dfc5ddacfda8d249bf4b3c739da8f7a1
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