summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorJeff Davis2021-07-09 21:15:48 +0000
committerJeff Davis2021-07-10 17:28:33 +0000
commit52c168db955d4a3df79c41fc9da7f8b0de784305 (patch)
tree9ab7b54c563d61fd91105410ce59045cf3b26f1f /doc/src
parent946f62f2fb828630ba0cf56adea34fa7d0fd22d9 (diff)
Fix assign_record_type_typmod().
If an error occurred in the wrong place, it was possible to leave an unintialized entry in the hash table, leading to a crash. Fixed. Also, be more careful about the order of operations so that an allocation error doesn't leak memory in CacheMemoryContext or unnecessarily advance NextRecordTypmod. Backpatch through version 11. Earlier versions (prior to 35ea75632a5) do not exhibit the problem, because an uninitialized hash entry contains a valid empty list. Author: Sait Talha Nisanci <Sait.Nisanci@microsoft.com> Reviewed-by: Andres Freund Discussion: https://postgr.es/m/HE1PR8303MB009069D476225B9A9E194B8891779@HE1PR8303MB0090.EURPRD83.prod.outlook.com Backpatch-through: 11
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions