Skip to content

Fix ZipperHead exclusive path at the head's own root - #126

Merged
luketpeterson merged 1 commit into
Adam-Vandervorst:masterfrom
imlvts:fix/zipper-head-exclusive-at-head-root
Sep 23, 2026
Merged

luketpeterson merged 1 commit into
Adam-Vandervorst:masterfrom
imlvts:fix/zipper-head-exclusive-at-head-root

Conversation

@imlvts

@imlvts imlvts commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

With an empty path and the head's root inside a node, the walk popped a byte of the head's own path and never put it back. The next request then read past its key buffer (UB in release) or panicked.

With an empty path and the head's root inside a node, the walk popped a
byte of the head's own path and never put it back. The next request then
read past its key buffer (UB in release) or panicked.
@luketpeterson

Copy link
Copy Markdown
Collaborator

I see. That ZH code was assuming it had a rooted WriteZipper. oops. Good fix.

@luketpeterson
luketpeterson merged commit b30468d into Adam-Vandervorst:master Sep 23, 2026
3 of 4 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