pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Catch invalid typlens in a couple of places 7+ messages / 1 participants [nested] [flat]
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and datum_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8557a6f10ca6f01f4b2f2f25e197292f3f46bb5c Modified Files -------------- src/backend/utils/adt/datum.c | 22 ++++++++++++---------- src/backend/utils/adt/rowtypes.c | 24 +++++++++++++----------- 2 files changed, 25 insertions(+), 21 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and record_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0782050bc22d4d428c3cffe0d0a7ecee29d2f5fe Modified Files -------------- src/backend/utils/adt/rowtypes.c | 47 ++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 21 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and record_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2dbe5706bb9485d7293798e8f80e9d9ba78fbfdc Modified Files -------------- src/backend/utils/adt/rowtypes.c | 117 ++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 56 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and datum_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5a2967412f63f3b9390aa7b3af95e2fae0965ff8 Modified Files -------------- src/backend/utils/adt/datum.c | 22 ++++++++++++---------- src/backend/utils/adt/rowtypes.c | 24 +++++++++++++----------- 2 files changed, 25 insertions(+), 21 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and record_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1fee24a0b471f6b54ad9b87c8a89580e9bb66560 Modified Files -------------- src/backend/utils/adt/rowtypes.c | 117 ++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 56 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and record_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/878a9b09c729a6ec6bc0b5e3a66b7715a18d0d8e Modified Files -------------- src/backend/utils/adt/rowtypes.c | 117 ++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 56 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Catch invalid typlens in a couple of places @ 2019-11-04 09:37 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 7+ messages in thread From: Peter Eisentraut @ 2019-11-04 09:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Catch invalid typlens in a couple of places Rearrange the logic in record_image_cmp() and record_image_eq() to error out on unexpected typlens (either not supported there or completely invalid due to corruption). Barring corruption, this is not possible today but it seems more future-proof and robust to fix this. Reported-by: Peter Geoghegan <pg@bowt.ie> Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7ab7c5c685f7752a0d7476910b98fe318ae85a04 Modified Files -------------- src/backend/utils/adt/rowtypes.c | 117 ++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 56 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-11-04 09:37 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.org> 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.org> 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.org> 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.org> 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.org> 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.org> 2019-11-04 09:37 pgsql: Catch invalid typlens in a couple of places Peter Eisentraut <peter@eisentraut.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