Skip to content

ext/tidy: Invalidate nodes after reparsing - #365

Closed
iliaal wants to merge 1 commit into
PHP-8.4from
fix/aph-tidy-reparse-node-uaf-u97h-84-work
Closed

iliaal wants to merge 1 commit into
PHP-8.4from
fix/aph-tidy-reparse-node-uaf-u97h-84-work

Conversation

@iliaal

@iliaal iliaal commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Track Tidy parse generations and reject node objects whose libtidy backing tree was replaced or is unowned.

Track each parse generation and reject tidyNode objects that belong to
an earlier tree before accessing their raw libtidy pointers. Add coverage
for stale node methods and casts while confirming nodes from the new tree
remain usable.
@iliaal

iliaal commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

Promoted as php#23937.

@iliaal iliaal closed this Sep 26, 2026
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.

1 participant