summaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/option.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-11-04 09:54:47 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-11-04 10:02:01 +0100
commit878a9b09c729a6ec6bc0b5e3a66b7715a18d0d8e (patch)
tree6744f2493268875dcf4a2bdbe6cff40d3cfaecde /contrib/postgres_fdw/option.c
parent0927d0c25c567564f1ce24ab9d8d6f1c5d83f1f0 (diff)
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>
Diffstat (limited to 'contrib/postgres_fdw/option.c')
0 files changed, 0 insertions, 0 deletions