]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Validate ltree siglen GiST option to be int-aligned
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 23 Apr 2023 10:58:25 +0000 (13:58 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 23 Apr 2023 11:30:51 +0000 (14:30 +0300)
commit214495dc5b712552d3938d5f03acddfedc8a81ca
tree5ac8d90068912eb8f0e5f60c1c339e863af05ceb
parent6e7361c85e95a09ee0d1fbb2f8460962b86489ab
Validate ltree siglen GiST option to be int-aligned

Unaligned siglen could lead to an unaligned access to subsequent key fields.

Backpatch to 13, where opclass options were introduced.

Reported-by: Alexander Lakhin
Bug: 17847
Discussion: https://postgr.es/m/17847-171232970bea406b%40postgresql.org
Reviewed-by: Tom Lane, Pavel Borisov, Alexander Lakhin
Backpatch-through: 13
contrib/ltree/expected/ltree.out
contrib/ltree/ltree_gist.c
contrib/ltree/sql/ltree.sql
doc/src/sgml/ltree.sgml