]> 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 08:54:47 +0000 (09:54 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 4 Nov 2019 08:54:47 +0000 (09:54 +0100)
commit1fee24a0b471f6b54ad9b87c8a89580e9bb66560
tree7372f35b6e19e46cc9d55ae77db46dd2da291ce9
parent4077e9ae150fcf0a8a8a94f50b5bbd304878fbb0
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