diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-11-04 08:30:00 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-11-04 09:08:15 +0100 |
commit | 8557a6f10ca6f01f4b2f2f25e197292f3f46bb5c (patch) | |
tree | 6c6ee9092623cc14fac391eafdfbb4edd5b6cf48 /src/backend/access/gist/gistutil.c | |
parent | db27b60f07a039e236738fe90bd4215cafd35cf2 (diff) | |
download | postgresql-8557a6f10ca6f01f4b2f2f25e197292f3f46bb5c.tar.gz |
Catch invalid typlens in a couple of places
Rearrange the logic in record_image_cmp() and datum_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 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions