]> 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:31:11 +0000 (14:31 +0300)
commitf4a4a18ecbdb74da70679c7bcaa395f66b68c4af
tree1148a9344f4be60ad83ac9b3c5bfda236a21d757
parent9ef5a358378423a1208bee73b9cb3381f27cd3c2
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