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 <[email protected]> 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(-)
