]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Catch invalid typlens in a couple of places
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 4 Nov 2019 07:30:00 +0000 (08:30 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 4 Nov 2019 08:20:33 +0000 (09:20 +0100)
commit0782050bc22d4d428c3cffe0d0a7ecee29d2f5fe
treed93bcc00114a7e49b3c6a81586797e1a11428091
parent88d03d73c22440763dbe85378fdda8389db78b0d
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>
src/backend/utils/adt/rowtypes.c