]> 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>
Mon, 29 Aug 2016 19:46:29 +0000 (15:46 -0400)
commitb6238a61769ffbf8a8ac653baeed1c3373b961f8
treef97b8426c7972dfc22ff26a3bb269b7b97f267f4
parenteaa03649fb5a3d983d48afe0124b15ad12b7bead
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).

ticket: 8485 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
src/plugins/kdb/db2/libdb2/btree/bt_conv.c