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 dangling reference in Construct_center_3(Circle_3) #8586

Open
wants to merge 7 commits into
base: 5.6.x-branch
Choose a base branch
from

Conversation

MaelRL
Copy link
Member

@MaelRL MaelRL commented Nov 3, 2024

Summary of Changes

In the chain of going from a 3D circle to its center was a copy among const&.

The PR fixes the issue, but there are still some functors that return const& assuming the rep provides one. Thus, you could do obtain something broken if you (for example) based a new kernel on a CGAL kernel, but redefined some of the objects to remove some const&, while keeping all the corresponding functors. But a lot more can go wrong with these configurations that it's out of scope for this PR.

Also add missing tests for EPICK & EPECK.

Release Management

This fixes the issue, but it could still be broken e.g. by a kernel
that is based on a CGAL kernel, but redefines the Sphere_3 and
with Sphere_3-functor that would not return a const& (or in that
case the custom kernel needs to define the appropriate functors
too...)

But so much breaks into this configuration, that it's out of scope
for this fix.
@afabri
Copy link
Member

afabri commented Nov 5, 2024

Errors in I-c-12

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.

Applying Construct_center_3 on a Circle_3 object causes segmentation fault
4 participants