Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented Jan 9, 2026

The element may be still in use in other places, so the linking pointers should be kept consistent. If not consistent, the "move forward" code in the sample test will read a stale, dangling pointer.

…when modifying during iteration

The element may be still in use in other places, so the linking pointers
should be kept consistent. If not consistent, the "move forward" code in
the sample test will read a stale, dangling pointer.
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.

SPL: heap-use-after-free in SplDoublyLinkedList iterator when modifying during iteration

1 participant