Skip to content

Backport fix to fillet crash? #825

@pjcreath

Description

@pjcreath

Description

Fillet crashes (or used to) with a null pointer dereference when topologically distinct but geometrically coincident edges exist.

The offending code in 7.9.2 is here and dates back to at least 7.8.1 (where I encountered it).

The code assumes that a neighboring face Fv must contain an identical edge object E (using IsSame). However, this assumption does not always hold, resulting in a null newedge being passed down to HC->Initialize().

This was fixed in PR #743, which came after V8_0_0_rc2.

Is there any chance of backporting the null check to earlier versions?

Expected Behavior

I'd expect an error message.

Actual Behavior

It crashes with a segfault.

Sample Code or DRAW Tcl Script

n/a

Operating System

macOS

Compiler

Clang

Bitness

64-bit

OCCT Version

7.9

Additional Files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories2. BugSomething isn't working

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions