]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid low-probability crash on out-of-memory.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Dec 2024 17:54:41 +0000 (12:54 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Dec 2024 17:54:41 +0000 (12:54 -0500)
commit4398507dfafcbb92efd4fab816f3f8a1c0f34761
tree67a10f402e4ffcbe4abd6e94dd8a230ab98a7777
parenta501fe5a971ed06c50f173406c4184b3d32cdf93
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
src/backend/tcop/postgres.c