projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85b47ba
)
0027172: Visualization - avoid signed integer overflow within Graphic3d_ArrayOfPrimitives
author
kgv
<kgv@opencascade.com>
Wed, 17 Feb 2016 14:37:43 +0000
(17:37 +0300)
committer
abv
<abv@opencascade.com>
Sat, 20 Feb 2016 07:10:02 +0000
(10:10 +0300)
src/Graphic3d/Graphic3d_ArrayOfPrimitives.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/Graphic3d/Graphic3d_ArrayOfPrimitives.cxx
b/src/Graphic3d/Graphic3d_ArrayOfPrimitives.cxx
index 7421d56593f3d79b0704b19d609723256715931c..ab3abb724c8d6330c21e422043d2a8f932137ae1 100644
(file)
--- a/
src/Graphic3d/Graphic3d_ArrayOfPrimitives.cxx
+++ b/
src/Graphic3d/Graphic3d_ArrayOfPrimitives.cxx
@@
-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)
{