]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix btree byte swapping for overflow data
authorTom Yu <tlyu@mit.edu>
Fri, 26 Aug 2016 19:24:52 +0000 (15:24 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 2 Sep 2016 22:32:04 +0000 (18:32 -0400)
commitb777b47bf7e24a44ae20065c28382e9a2d3834ef
treea113f80a6b19b53c4db1c3339b66055dae502e00
parent0039539d64f4b33c170461ceb9e7b4fecff4df40
Fix btree byte swapping for overflow data

When operating on a btree database file of the opposite endianness,
libdb2 was swapping the wrong bytes if a record had a short key but
overflow data.  Fix this bug by not incrementing p when swapping a
P_BIGKEY overflow pointer, and by always skipping the full key size
before swapping a P_BIGDATA overflow pointer (instead of assuming that
a P_BIGKEY pointer always precedes a P_BIGDATA pointer).

(cherry picked from commit b6238a61769ffbf8a8ac653baeed1c3373b961f8)

ticket: 8485
version_fixed: 1.13.7
src/plugins/kdb/db2/libdb2/btree/bt_conv.c