forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit41493ba
committed
Fix two thinkos related to strong random keys.
pg_backend_random() is used for MD5 salt generation, but it can fail, andno checks were done on its status code.Fix memory leak, if generating a random number for a cancel key failed.Both issues were spotted by Coverity. Fix by Michael Paquier.1 parentad365b2 commit41493ba
2 files changed
+7
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
715 | 715 |
| |
716 | 716 |
| |
717 | 717 |
| |
718 |
| - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
719 | 724 |
| |
720 | 725 |
| |
721 | 726 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3901 | 3901 |
| |
3902 | 3902 |
| |
3903 | 3903 |
| |
| 3904 | + | |
3904 | 3905 |
| |
3905 | 3906 |
| |
3906 | 3907 |
| |
|
0 commit comments
Comments
(0)