pgsql: Avoid core dump after getpwuid_r failure. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid core dump after getpwuid_r failure.
Date
Msg-id E1snR7b-000CFD-PE@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Avoid core dump after getpwuid_r failure.

Looking up a nonexistent user ID would lead to a null pointer
dereference.  That's unlikely to happen here, but perhaps
not impossible.

Thinko in commit 4d5111b3f, noticed by Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e62fa62d6745ba3bcb0a517d002aff1f3cdefb7

Modified Files
--------------
src/interfaces/libpq/fe-auth.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Update extension lookup routines to use the syscache
Next
From: Michael Paquier
Date:
Subject: pgsql: Add callbacks to control flush of fixed-numbered stats