Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply upstream fixes #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Apply upstream fixes #2

wants to merge 4 commits into from

Conversation

leiless
Copy link

@leiless leiless commented Oct 10, 2023

Pull Request

Related issue

Fixes ITS#10095, ITS#8447, ITS#9961

What does this PR do?

Keep up-to-date with upstream LMDB source code.

I recently encountered the bug: ITS#8447 fix cursor_put(MDB_CURRENT) on DUPSORT DB with different-sized data.

The new data item content(value) is interleaved with its previous data, which causes the new value corrupted.
(New value len is shorter than old value len, but when you read, it still uses the old size)

See full thread:
https://www.openldap.org/lists/openldap-bugs/201606/msg00049.html
https://www.openldap.org/lists/openldap-bugs/201606/msg00050.html
https://www.openldap.org/lists/openldap-bugs/201606/msg00053.html

hyc and others added 4 commits December 15, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants