Add vertexIndex bounds check
This commit is contained in:
parent
a1adc59cb8
commit
011b4027db
|
@ -1714,7 +1714,7 @@ bool DL_Dxf::handleLWPolylineData( DL_CreationInterface* /*creationInterface*
|
|||
vertices[4 * vertexIndex + (groupCode / 10 - 1)] = toReal( groupValue );
|
||||
}
|
||||
}
|
||||
else if( groupCode==42 && vertexIndex<maxVertices )
|
||||
else if( groupCode==42 && vertexIndex<maxVertices && vertexIndex >= 0 )
|
||||
{
|
||||
vertices[4 * vertexIndex + 3] = toReal( groupValue );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue