]> granicus.if.org Git - postgresql/commit
Fix two thinkos related to strong random keys.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 Dec 2016 07:58:32 +0000 (09:58 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 Dec 2016 07:58:32 +0000 (09:58 +0200)
commit41493bac36575c93172644d0eab7045aed8dcc17
tree8ff86758463e3227a4f5bdefd4956509125273d7
parentad365b2f91dc57ed1f18839f9f59a2799d276c8d
Fix two thinkos related to strong random keys.

pg_backend_random() is used for MD5 salt generation, but it can fail, and
no 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.
src/backend/libpq/auth.c
src/backend/postmaster/postmaster.c