mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0030594: Data Exchange - access violation within IGESGeom_BSplineCurve constructor
Added NULL check.
This commit is contained in:
parent
cb6cad7df1
commit
de07af824b
@ -40,13 +40,23 @@ IGESGeom_BSplineCurve::IGESGeom_BSplineCurve () { }
|
|||||||
const Standard_Real aUmin, const Standard_Real aUmax,
|
const Standard_Real aUmin, const Standard_Real aUmax,
|
||||||
const gp_XYZ& aNorm)
|
const gp_XYZ& aNorm)
|
||||||
{
|
{
|
||||||
if (!allPoles.IsNull()) {
|
if (!allPoles.IsNull())
|
||||||
if (allPoles->Length() != allWeights->Length())
|
{
|
||||||
throw Standard_DimensionMismatch("IGESGeom_BSplineCurve : Init");
|
if (allKnots->Lower() != -aDegree
|
||||||
if (allKnots->Lower() != -aDegree || allKnots->Upper() != anIndex+1 ||
|
|| allKnots->Upper() != anIndex + 1
|
||||||
allWeights->Upper() != anIndex ||
|
|| allPoles->Lower() != 0)
|
||||||
allWeights->Lower() != 0 || allPoles->Lower() != 0)
|
{
|
||||||
throw Standard_DimensionMismatch("IGESGeom_BSplineCurve : Init");
|
throw Standard_DimensionMismatch ("IGESGeom_BSplineCurve : Init");
|
||||||
|
}
|
||||||
|
if (!allWeights.IsNull())
|
||||||
|
{
|
||||||
|
if (allPoles->Length() != allWeights->Length()
|
||||||
|
|| allWeights->Upper() != anIndex
|
||||||
|
|| allWeights->Lower() != 0)
|
||||||
|
{
|
||||||
|
throw Standard_DimensionMismatch ("IGESGeom_BSplineCurve : Init");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
theIndex = anIndex;
|
theIndex = anIndex;
|
||||||
|
@ -6,7 +6,7 @@ puts "TODO CR23096 ALL: COLORS : Faulty"
|
|||||||
set filename igsBF5.igs
|
set filename igsBF5.igs
|
||||||
|
|
||||||
set ref_data {
|
set ref_data {
|
||||||
DATA : Faulties = 0 ( 0 ) Warnings = 0 ( 1 ) Summary = 0 ( 1 )
|
DATA : Faulties = 0 ( 2152 ) Warnings = 0 ( 1 ) Summary = 0 ( 2153 )
|
||||||
TPSTAT : Faulties = 0 ( 0 ) Warnings = 17 ( 249 ) Summary = 17 ( 249 )
|
TPSTAT : Faulties = 0 ( 0 ) Warnings = 17 ( 249 ) Summary = 17 ( 249 )
|
||||||
CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) Solids = 0 ( 0 )
|
CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) Solids = 0 ( 0 )
|
||||||
NBSHAPES : Solid = 0 ( 0 ) Shell = 0 ( 0 ) Face = 47 ( 47 )
|
NBSHAPES : Solid = 0 ( 0 ) Shell = 0 ( 0 ) Face = 47 ( 47 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user