pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix assign_record_type_typmod(). 5+ messages / 1 participants [nested] [flat]
* pgsql: Fix assign_record_type_typmod(). @ 2021-07-10 17:44 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Jeff Davis @ 2021-07-10 17:44 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.c... Backpatch-through: 11 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/dd0e37cc1598050ec38fa289908487d4f5c96dca Modified Files -------------- src/backend/utils/cache/typcache.c | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix assign_record_type_typmod(). @ 2021-07-10 17:44 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Jeff Davis @ 2021-07-10 17:44 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.c... Backpatch-through: 11 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/10a07973cf72b32f32f0e05ada16c84580496d93 Modified Files -------------- src/backend/utils/cache/typcache.c | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix assign_record_type_typmod(). @ 2021-07-10 17:44 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Jeff Davis @ 2021-07-10 17:44 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.c... Backpatch-through: 11 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/edd9a2bf741be95aa771b9fcacb2ce7378fb9121 Modified Files -------------- src/backend/utils/cache/typcache.c | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix assign_record_type_typmod(). @ 2021-07-10 17:44 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Jeff Davis @ 2021-07-10 17:44 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.c... Backpatch-through: 11 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5b1621d2fb736bcec58114faf035e6ad9bd64a1d Modified Files -------------- src/backend/utils/cache/typcache.c | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix assign_record_type_typmod(). @ 2021-07-10 17:44 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 5+ messages in thread From: Jeff Davis @ 2021-07-10 17:44 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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.c... Backpatch-through: 11 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/52c168db955d4a3df79c41fc9da7f8b0de784305 Modified Files -------------- src/backend/utils/cache/typcache.c | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2021-07-10 17:44 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-07-10 17:44 pgsql: Fix assign_record_type_typmod(). Jeff Davis <jdavis@postgresql.org> 2021-07-10 17:44 pgsql: Fix assign_record_type_typmod(). Jeff Davis <jdavis@postgresql.org> 2021-07-10 17:44 pgsql: Fix assign_record_type_typmod(). Jeff Davis <jdavis@postgresql.org> 2021-07-10 17:44 pgsql: Fix assign_record_type_typmod(). Jeff Davis <jdavis@postgresql.org> 2021-07-10 17:44 pgsql: Fix assign_record_type_typmod(). Jeff Davis <jdavis@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox