mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0027172: Visualization - avoid signed integer overflow within Graphic3d_ArrayOfPrimitives
This commit is contained in:
parent
85b47ba49b
commit
6273fa4b6c
@ -106,7 +106,7 @@ Graphic3d_ArrayOfPrimitives::Graphic3d_ArrayOfPrimitives (const Graphic3d_TypeOf
|
||||
myIndices.Nullify();
|
||||
return;
|
||||
}
|
||||
memset (myAttribs->ChangeData (0), 0, myAttribs->Stride * myAttribs->NbElements);
|
||||
memset (myAttribs->ChangeData (0), 0, size_t(myAttribs->Stride) * size_t(myAttribs->NbElements));
|
||||
|
||||
if (theMaxBounds > 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user