summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorNoah Misch2019-07-01 00:34:17 +0000
committerNoah Misch2019-07-01 00:34:20 +0000
commit2938aa2a5b1cebb41f9e54c1ea289c286139c21e (patch)
tree339a14300401b3bbdfd38c9024f63631edb07261 /doc/src
parent793eb94e31387738c72a8d7d702a6aecc9c5edee (diff)
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 'doc/src')
0 files changed, 0 insertions, 0 deletions