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

Fix incorrent bytes to calculate length of ziplist/listpack 32bit string #2124

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented Feb 28, 2024

Currently, it calculates the length of 32-bit string from position 0 to 3, but the right position should be 1 to 4 in ziplist/listpack. So it will retrieve a wrong length and throw an error.

also refer: https://github.com/redis/redis/blob/unstable/src/listpack.c#L101

This closes #2118

Currently, it calculates the length of 32bit string from position 0 to
3, but the right position should be 0 to 4 in ziplist and listpack. So
it will retrieve a wrong length and throw an error.
@git-hulk git-hulk merged commit 67208e6 into apache:unstable Feb 28, 2024
29 checks passed
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
49.8% Coverage on New Code (required ≥ 50%)

See analysis details on SonarCloud

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.

"RDB LOAD" command fails
3 participants