Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UB in instance_dealloc #422

Closed
wants to merge 1 commit into from
Closed

Fix UB in instance_dealloc #422

wants to merge 1 commit into from

Conversation

vient
Copy link

@vient vient commented Aug 30, 2023

Do not use dynamic_cast after destroying object, it is not correct and leads to NULL pointer dereference with some compilers

This fix worked for me, no more SIGSEGVs.

Fix #421

Do not use dynamic_cast after destroying object, it is not correct and leads to NULL pointer dereference with some compilers
@stefanseefeld
Copy link
Member

This was taken care of by #387

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.

NULL ptr deref in instance_dealloc
2 participants