MantisBT - Community
View Issue Details
0024919Community[OCCT] OCCT:Modeling Datapublic2014-05-14 14:182014-11-11 12:52
drazmyslovich 
apn 
normalcrash 
closedfixed 
WindowsVC++ 201064 bit
[OCCT] 6.6.0 
[OCCT] 6.8.0[OCCT] 6.8.0 
Not needed
0024919: ShapeFix can crash time-to-time due to inproper interator handling inside of Approx_SameParameter::Build function
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.
I can't provide the model, which contains the case, when ShapeFix crashes due to this error.
No tags attached.
Issue History
2014-05-14 14:18drazmyslovichNew Issue
2014-05-14 14:18drazmyslovichAssigned To => drazmyslovich
2014-05-14 14:35drazmyslovichNote Added: 0029319
2014-05-14 14:35drazmyslovichStatusnew => resolved
2014-05-14 15:35abvNote Added: 0029326
2014-05-14 15:35abvAssigned Todrazmyslovich => ifv
2014-05-14 15:35abvTarget VersionUnscheduled => 6.8.0
2014-05-22 16:52apnNote Added: 0029474
2014-05-22 16:54apnTest case number => Not needed
2014-05-22 16:54apnAssigned Toifv => bugmaster
2014-05-22 16:54apnStatusresolved => reviewed
2014-05-22 16:54apnStatusreviewed => tested
2014-05-22 17:11drazmyslovichNote Added: 0029475
2014-05-23 14:25apnChangeset attached => occt master 3f5bebe8
2014-05-23 14:25apnAssigned Tobugmaster => apn
2014-05-23 14:25apnStatustested => verified
2014-05-23 14:25apnResolutionopen => fixed
2014-06-17 12:47aivProjectOpen CASCADE => Community
2014-11-11 12:46aivFixed in Version => 6.8.0
2014-11-11 12:52aivStatusverified => closed

Notes
(0029319)
drazmyslovich   
2014-05-14 14:35   
Please, review the patch
(0029326)
abv   
2014-05-14 15:35   
@drazmyslovich: 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.
(0029474)
apn   
2014-05-22 16:52   
Tested with 24921
(0029475)
drazmyslovich   
2014-05-22 17:11   
Unfortunately, I was unable to find the test case, where I've met this error. Sorry.