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 exception double free in Convex decomposition #8433

Conversation

GilesBathgate
Copy link
Contributor

Summary of Changes

Change the order of delete in External_structure_builder.h to avoid a double free in the exception case

Release Management

@sloriot
Copy link
Member

sloriot commented Sep 3, 2024

Successfully tested in CGAL-6.0-Ic-318

@sloriot
Copy link
Member

sloriot commented Sep 3, 2024

Seems worth going into 5.5.x, but on the other end the issue is so old that 6.0 is enough

@sloriot
Copy link
Member

sloriot commented Sep 3, 2024

AFAIS, it does fix the segfault of 422 but not the assertion failing. I'll try to have a look later to see if the fix is easy

@sloriot sloriot added the Not yet approved The feature or pull-request has not yet been approved. label Sep 3, 2024
@GilesBathgate
Copy link
Contributor Author

Yes I think issue #422 was about the segfault. Didn't @kintel raise another issue regarding the assertion fail, or do we even expect the nef input provided to be decompose-able?

@sloriot
Copy link
Member

sloriot commented Sep 3, 2024

I think you are right. There is an isolated vertex that seems to be responsible for not being decomposable. I'll merge the PR as it fixes an issue.

@sloriot sloriot merged commit eac5679 into CGAL:master Sep 3, 2024
9 checks passed
@GilesBathgate GilesBathgate deleted the Convex_decomposition-fix_exception_double_free-GilesBathgate branch September 3, 2024 19:53
@lrineau lrineau removed the Not yet approved The feature or pull-request has not yet been approved. label Sep 4, 2024
@lrineau lrineau added this to the 6.0 milestone Sep 4, 2024
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.

convex_decomposition_3: Uncatchable exception causes crash after copying Nef_3
3 participants