Skip to content

Fix exclusive zippers rooted at an emptied link - #146

Merged
luketpeterson merged 2 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/exclusive-zipper-emptied-link
Oct 2, 2026
Merged

luketpeterson merged 2 commits into
Adam-Vandervorst:masterfrom
imlvts:fix/exclusive-zipper-emptied-link

Conversation

@imlvts

@imlvts imlvts commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

prepare_cf returned an existing link even when it was the empty sentinel, left by remove_branches, take_map or grafting nothing. A write zipper rooted there couldn't move or read. Give it a fresh node, as for a missing link.

prepare_cf returned an existing link even when it was the empty sentinel,
left by remove_branches, take_map or grafting nothing. A write zipper
rooted there couldn't move or read. Give it a fresh node, as for a
missing link.
@luketpeterson

Copy link
Copy Markdown
Collaborator

Good fix. I added one defensive test, but the implementation was already correct. Merging.

@luketpeterson
luketpeterson merged commit 042e349 into Adam-Vandervorst:master Oct 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants