forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a29cf6
committed
Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()
Both Blowfish and DES implementations of crypt() can take arbitrarilylong time, depending on the number of rounds specified by the caller;make sure they can be interrupted.Author: Andreas KarlssonReviewer: Jeff JanesBackpatch to 9.1.1 parent70ff737 commit0a29cf6
2 files changed
+6
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
670 | 671 |
| |
671 | 672 |
| |
672 | 673 |
| |
| 674 | + | |
| 675 | + | |
673 | 676 |
| |
674 | 677 |
| |
675 | 678 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
| |||
540 | 541 |
| |
541 | 542 |
| |
542 | 543 |
| |
| 544 | + | |
| 545 | + | |
543 | 546 |
| |
544 | 547 |
| |
545 | 548 |
| |
|
0 commit comments
Comments
(0)