Skip to content

Conversation

edusperoni
Copy link
Collaborator

Description

Previsouly we used if (childNodeDataId == childNodeData->nextSiblingId) { as a breaking out of the loop.

Usually this is fine, as it's generated A->B->C->C. The issue is that in some very specific scenarios the metadata will generate:

A->B->C->B

Which will generate an infinite loop.

Additionally, It's not uncommon to have:

A->B->C->F
D->E->F

Which would generate:

A->B->C->F (break)
D->E->F (break)

but since F already exists, then it would leak a MetadataTreeNode

@cla-bot cla-bot bot added the cla: yes label Feb 17, 2023
@NathanWalker NathanWalker merged commit c2c8aa8 into main Feb 17, 2023
@NathanWalker NathanWalker deleted the fix/infinite-loop-metadata branch February 17, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants