MantisBT - Community
View Issue Details
0002502Community[OCCT] OCCT:Modeling Algorithmspublic2003-04-28 15:572006-06-29 09:15
bugmaster 
ofv 
normaltrivial 
closedfixed 
All
 
[OCCT] 5.1.0 
0002502: Bug in IntCurve_IntPolyPolyGen::Perform
Bug from Open CASCADE community

Author: Fran├žois Lauzon

http://www.opencascade.org/forumorg/bug.php?bug_id=120&f=8 [^]

when I import a step file, it crash in the method Perform of
IntCurve_IntPolyPolyGen around line 475, in the following code:

if(EIP.NbRoots()==0) {
//-- On supprime tous les segments voisins
for(Standard_Integer k=sp+1;k<=Nbsp;k++) {
Standard_Integer kk=TriIndex[k];
if( Abs(SegIndex1-PtrSegIndex1[kk])< Nelarg
&& Abs(SegIndex2-PtrSegIndex2[kk])< Nelarg) {
TriIndex[k]=-k;
}
}
}
    
what is appening is that kk gets a value of -11, so it's out of bound for
PreSegIndex array and PreSegIndex2 array, if I add a check for negative kk index
it's working, but I guess it might not be a bug fix, you might want to check why
it's not working. If you need the step file, I can supply it, but it's a bit
big to post it.
No tags attached.
gz ofv-occ2502-v1.tar.gz (7,050) 2003-04-29 14:43
https://tracker.dev.opencascade.org/
Issue History
2003-04-28 15:59bugmasterAssigned Tobugmaster => ofv
2003-04-28 15:59bugmasterStatusnew => assigned
2003-04-28 15:59bugmasterSummary => Bug in IntCurve_IntPolyPolyGen::Perform
2003-04-29 18:45ofvStatusassigned => resolved
2003-04-30 16:30bugmasterCC => apv
2003-05-07 12:25apvCC => aki
2003-05-19 11:09bugmasterStatusresolved => closed
2003-05-19 11:09bugmasterResolution@0@ => fixed
2004-12-30 11:31bugmasterCustomer =>
2011-08-02 11:31bugmasterCategoryOCCT:MOA => OCCT:Modeling Algorithms

There are no notes attached to this issue.