]> 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 09:02:01 +0000 (10:02 +0100)
commit878a9b09c729a6ec6bc0b5e3a66b7715a18d0d8e
tree6744f2493268875dcf4a2bdbe6cff40d3cfaecde
parent0927d0c25c567564f1ce24ab9d8d6f1c5d83f1f0
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