#137457 – [4.4x backport] Fix: integer overflows calculating the number of pixels – blender
Note that moving to the templated versions of array allocation functions
in 0 caused integer overflow regressions because multiplying by thesizeof(type)
caused the following values to be cast to a size_t.
Back ported from: 3b2c0b6cd5
Note that moving to the templated versions of array allocation functions
in [0] caused integer overflow regressions because multiplying by the
`sizeof(type)` caused the following values to be cast to a size_t.
[0]: e85ebb24fe012f839a9ec24f4831f7d6e459f180
Back ported from: 3b2c0b6cd58eb36261436103b7275d965bb2d89d
Read more here: Source link