]> git.ipfire.org Git - thirdparty/krb5.git/commit
Avoid byte-swap cache corruption in libdb2
authorTom Yu <tlyu@mit.edu>
Thu, 25 Aug 2016 22:02:56 +0000 (18:02 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 2 Sep 2016 18:49:39 +0000 (14:49 -0400)
commit2df6a717699feb8084b7b96d089826d0a3239e19
treeac78b422b777343c65ef8cb426f5a0aa3651b862
parent7e76a6eb8f738e7395766cc043c3755431bab718
Avoid byte-swap cache corruption in libdb2

Apply a patch from NetBSD to restore the cached copy of a page to the
machine byte order after a write operation swapped it to the file byte
order.  As a regression test, modify test13 to sync the database file
after each put to exercise this bug.

(cherry picked from commit 56d02135d4c77b6aa0cb7136477d426248c60a6f)

ticket: 8483
version_fixed: 1.14.4
src/plugins/kdb/db2/libdb2/mpool/mpool.c
src/plugins/kdb/db2/libdb2/test/run.test