-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 b6238a6) ticket: 8485 version_fixed: 1.14.4
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters