Wed, 04/07/2021 - 14:55
Hi all,
When I try to read a corrupted step file I observe a crash in the “TransferRoots()” method of the STEPControl_Reader. The corrupted step file is read without errors but causes a crash afterwards. The crash happens because a nullptr is accessed in this method:
Standard_Integer StepGeom_Direction::NbDirectionRatios () const
{
return directionRatios->Length();
}
Wrapping in a try-catch-block does not help. Has anybody an idea on how we could prevent this crash?
Please note: The STP file has been broken on purpose to test our application for robustness against corrupted input.
Attachments:
Wed, 04/07/2021 - 15:20
1. It would be useful reporting a bug to OCCT (and even better - propose a patch). Even if file is broken, OCCT code should perform proper NULL checks to report/ignore errors.
2. Check documentation of OSD::SetSignal() if you would like to intercept such issues and prevent application from termination.
Thu, 04/08/2021 - 10:26
Thanks, Kirill.
It seems I cannot log in to Mantis BT using my OpenCascade sign-on credentials, so how do I report a bug? Unfortunately the FAQ | Open CASCADE Technology page seems broken, I can only see the questions.
Wed, 04/21/2021 - 11:24
I hope that problems with login has been already solved. If not - please provide technical details of your issues via contact form.
Thu, 04/22/2021 - 09:29
Thanks Kyrill, I've been able to create https://tracker.dev.opencascade.org/view.php?id=32314