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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user