Skip to content

Fix dangling env pointer in image MIME data cleanup#2551

Merged
chearon merged 2 commits intoAutomattic:masterfrom
kayahr:bugfix/2550-fix-dangling-env-pointer
Feb 4, 2026
Merged

Fix dangling env pointer in image MIME data cleanup#2551
chearon merged 2 commits intoAutomattic:masterfrom
kayahr:bugfix/2550-fix-dangling-env-pointer

Conversation

@kayahr
Copy link
Contributor

@kayahr kayahr commented Feb 4, 2026

Copies env handle instead of referencing env member in Image. Image can be destroyed before clearMimeData is executed, so the pointer would be invalid.

Fixes #2550

  • Have you updated CHANGELOG.md?

Copy link
Collaborator

@chearon chearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@chearon chearon merged commit c1d99bd into Automattic:master Feb 4, 2026
16 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.

Crash in clearMimeData

2 participants