aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-06-30 17:34:17 -0700
committerNoah Misch <noah@leadboat.com>2019-06-30 17:34:17 -0700
commit459c3cdb4ad8323bfe6bcae0186a3831e0c89c94 (patch)
tree56e6c559d025f99e2d7f0c0237f1a9521807d22f /contrib/postgres_fdw/sql/postgres_fdw.sql
parentda53be23d1c5e529675e958eaee54cfed4e4dbac (diff)
downloadpostgresql-459c3cdb4ad8323bfe6bcae0186a3831e0c89c94.tar.gz
postgresql-459c3cdb4ad8323bfe6bcae0186a3831e0c89c94.zip
Don't read fields of a misaligned ExpandedObjectHeader or AnyArrayType.
UBSan complains about this. Instead, cast to a suitable type requiring only 4-byte alignment. DatumGetAnyArrayP() already assumes one can cast between AnyArrayType and ArrayType, so this doesn't introduce a new assumption. Back-patch to 9.5, where AnyArrayType was introduced. Reviewed by Tom Lane. Discussion: https://postgr.es/m/20190629210334.GA1244217@rfd.leadboat.com
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions