Skip to content

Modeling - Segfault on chamfer or fillet approaching ellipse#738

Merged
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR725
Oct 7, 2025
Merged

Modeling - Segfault on chamfer or fillet approaching ellipse#738
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
AtheneNoctuaPt:CR725

Conversation

@AtheneNoctuaPt
Copy link
Copy Markdown
Collaborator

Fixed nullptr dereference.

@AtheneNoctuaPt AtheneNoctuaPt self-assigned this Oct 6, 2025
@AtheneNoctuaPt AtheneNoctuaPt added 2. Bug Something isn't working 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... labels Oct 6, 2025
@AtheneNoctuaPt AtheneNoctuaPt linked an issue Oct 6, 2025 that may be closed by this pull request
@dpasukhi dpasukhi requested a review from Copilot October 7, 2025 19:14
@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance Oct 7, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a segmentation fault that occurs during chamfer or fillet operations when approaching ellipse geometry. The fix addresses a nullptr dereference by adding proper null checking and error handling.

Key Changes

  • Added null pointer validation for C2dint1 and C2dint2 curve handles
  • Introduced proper error handling with Standard_ConstructionError exception when p-curves cannot be obtained

Comment thread src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_C1.cxx
@dpasukhi dpasukhi merged commit 6b43188 into Open-Cascade-SAS:IR Oct 7, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance Oct 7, 2025
dpasukhi pushed a commit to dpasukhi/OCCT that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 2. Bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Segfault on chamfer or fillet approaching ellipse

3 participants