]> git.ipfire.org Git - thirdparty/openldap.git/commit
ITS#9916 liblmdb: use alternate MDB_page2 struct for some accesses
authorHoward Chu <hyc@openldap.org>
Tue, 15 Nov 2022 15:33:48 +0000 (15:33 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 28 Nov 2022 23:17:08 +0000 (23:17 +0000)
commit3947014aed7ffe39a79991fa7fb5b234da47ad1a
tree3fd2357eccbdcdc4b4b74c0bb97ea5928f080bd0
parent6a1954d0ae6876b70f503121483a1c5107a910c2
ITS#9916 liblmdb: use alternate MDB_page2 struct for some accesses

fakepage pointers are only guaranteed to be 2-byte aligned. Use a
2-byte aligned struct definition when referencing 2-byte page members
if a page pointer possibly points to a fakepage.
libraries/liblmdb/mdb.c