pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add missing error check in pgcrypto/crypt-md5.c. 7+ messages / 1 participants [nested] [flat]
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/02a75f8369b1b14b709349ee60b29f79b70320f6 Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3d338a46a4c342fa1a4e276e0c84532141f4264b Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7004ce75897e008442673289b7c71af2832200f8 Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1eb2d7e3ea8ef683d29b4f0a81b6f21662edd1e7 Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3e1a4c260ef29249f412f2fcaa66c898d8d0bd7c Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e15115b4d204989447203b12b905c66dfb6c0a78 Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Add missing error check in pgcrypto/crypt-md5.c. @ 2020-10-16 16:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-10-16 16:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add missing error check in pgcrypto/crypt-md5.c. In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9c3032881e00eb92a6bb4fad966831881e9c3b41 Modified Files -------------- contrib/pgcrypto/crypt-md5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-10-16 16:00 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us> 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us> 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us> 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us> 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us> 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us> 2020-10-16 16:00 pgsql: Add missing error check in pgcrypto/crypt-md5.c. Tom Lane <tgl@sss.pgh.pa.us>
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