Skip to content

fix: use correct ziplist terminator - #1069

Merged
suxb201 merged 1 commit into
tair-opensource:v4from
FrancoZhangVip:patch-1
Oct 16, 2026
Merged

suxb201 merged 1 commit into
tair-opensource:v4from
FrancoZhangVip:patch-1

Conversation

@FrancoZhangVip

@FrancoZhangVip FrancoZhangVip commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • stop oversized ziplist traversal at the 0xFF end marker
  • preserve 0xFE as the valid extended previous-entry-length marker

Testing

  • GOTOOLCHAIN=auto go test ./internal/rdb/structure

Stop scanning oversized ziplists at the 0xFF end marker. The 0xFE byte is a valid prevlen marker for entries and must not terminate traversal.
@suxb201
suxb201 merged commit 8abd508 into tair-opensource:v4 Oct 16, 2026
10 checks passed
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