1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025770: Possible "invalid memory access"

Memory problems fixed.
This commit is contained in:
aml
2015-01-30 13:13:06 +03:00
committed by bugmaster
parent 0b0320e76e
commit 31e0b8e84c
2 changed files with 4 additions and 3 deletions

View File

@@ -788,7 +788,7 @@ void GeomInt_LineConstructor::TreatCircle(const Handle(IntPatch_Line)& aLine,
aT=pVtx[1].Value()+aTwoPI;
pVtx[aNbVtx-1].SetValue(aT);
//
for(i=0; i<aNbVtx; ++i) {
for(i=0; i<aNbVtx - 1; ++i) {
aT=pVtx[i+1].Value();
pVtx[i].SetValue(aT);
}