8cacf61568
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 Pull Request: https://projects.blender.org/blender/blender/pulls/137457