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

0030140: Modeling Algorithms - Access Null Pointer

The array TabP has been allocated correctly.
This commit is contained in:
nbv
2018-09-18 11:10:19 +03:00
committed by bugmaster
parent b8f7f6081f
commit 7e425ba7b0
2 changed files with 23 additions and 0 deletions

View File

@@ -270,6 +270,7 @@ static Standard_Boolean FindPlane ( const Handle(Adaptor3d_HCurve)& theC,
f = theC->FirstParameter();
l = theC->LastParameter();
inv = 1./(nbp-1);
TabP = new (TColgp_HArray1OfPnt) (1, nbp);
for (ii=1; ii<=nbp; ii++) {
t = ( f*(nbp-ii) + l*(ii-1));
t *= inv;