Archived issue #0024919
ShapeFix can crash time-to-time due to inproper interator handling inside of Approx_SameParameter::Build function
Description
Lines 461-464 of Approx_SameParameter::Build function:
while(Param_de_decoupeC1(inter) <= fcons + deltamin) inter++;
while(Param_de_decoupeC1(NbInt) >= lcons - deltamin) NbInt--;
while(inter <= NbInt || ii < NCONTROL) {
Variable inter isn't checked to be inside of Param_de_decoupeC1 range, what can result in access violation exception.
while(Param_de_decoupeC1(inter) <= fcons + deltamin) inter++;
while(Param_de_decoupeC1(NbInt) >= lcons - deltamin) NbInt--;
while(inter <= NbInt || ii < NCONTROL) {
Variable inter isn't checked to be inside of Param_de_decoupeC1 range, what can result in access violation exception.
Steps to reproduce
I can't provide the model, which contains the case, when ShapeFix crashes due to this error.
Public activity
4 archived notes
Participants are labeled by their role within this record.
Please, review the patch
Commenter 2: can you extract single edge or face on which the problem appears, instead of sending the whole model (which is confidential as far as I understand)? I deem single edge would not be confidential but still can allow creating a test case, and perhaps we can do more in-depth analysis of the problem.
Tested with 24921
Unfortunately, I was unable to find the test case, where I've met this error. Sorry.