postgresql/src/backend
Noah Misch 459c3cdb4a 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
2019-06-30 17:34:17 -07:00
..
access Don't call data type input functions in GUC check hooks 2019-06-30 10:27:43 +02:00
bootstrap In bootstrap mode, use default signal handling for SIGINT etc. 2019-05-14 10:22:28 -04:00
catalog Upgrade internal error message to external 2019-06-24 10:39:12 +02:00
commands Add an enforcement mechanism for global object names in regression tests. 2019-06-29 11:34:00 -04:00
executor Fix misleading comment in nodeIndexonlyscan.c. 2019-06-28 17:13:08 +12:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
lib Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
libpq Remove unnecessary header from be-secure-gssapi.c 2019-06-29 11:17:37 +09:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Reconcile nodes/*funcs.c with PostgreSQL 12 work. 2019-06-09 14:00:36 -07:00
optimizer Repair logic for reordering grouping sets optimization. 2019-06-30 23:49:13 +01:00
parser Fix typos and inconsistencies in code comments 2019-06-14 09:34:34 +09:00
partitioning Fix for dropped columns in a partitioned table's default partition 2019-06-28 14:51:08 -04:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
postmaster Fix typos and inconsistencies in code comments 2019-06-14 09:34:34 +09:00
regex Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
replication Add an enforcement mechanism for global object names in regression tests. 2019-06-29 11:34:00 -04:00
rewrite Fix typos in various places 2019-06-03 13:44:03 +09:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Add security checks to the multivariate MCV estimation code. 2019-06-23 18:50:08 +01:00
storage Remove obsolete comments about sempahores from proc.c. 2019-06-21 10:57:07 +12:00
tcop Fix partitioned index creation with foreign partitions 2019-06-26 18:38:51 -04:00
tsearch Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
utils Don't read fields of a misaligned ExpandedObjectHeader or AnyArrayType. 2019-06-30 17:34:17 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00