pgsql: Avoid low-probability crash on out-of-memory. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid low-probability crash on out-of-memory.
Date
Msg-id E1tJG3r-001GiN-Pd@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Avoid low-probability crash on out-of-memory.

check_restrict_nonsystem_relation_kind() correctly uses guc_malloc()
in v16 and later.  But in older branches it must use malloc()
directly, and it forgot to check for failure return.
Faulty backpatching of 66e94448a.

Karina Litskevich

Discussion: https://postgr.es/m/CACiT8iZ=atkguKVbpN4HmJFMb4+T9yEowF5JuPZG8W+kkZ9L6w@mail.gmail.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d24eb0e91f3f7fc54ed4e56d93b26e2f8d52c1ce

Modified Files
--------------
src/backend/tcop/postgres.c | 5 +++++
1 file changed, 5 insertions(+)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove pg_regex_collation
Next
From: Thomas Munro
Date:
Subject: pgsql: Fix printf format string warning on MinGW.