Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-03-06 17:33:47 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-03-06 17:35:52 +0300
commita16e4652e3c80504790730b66145b7aef14b3648 (patch)
tree3e260bd4446f432227e4d4656e34a0368de655c5 /source/blender/editors
parentc60366c01fc77b83868bf8080bcf2cb48a4edadf (diff)
Fix integer overflow in BLI_mempool_as_arrayN()
`(size_t)(int * int)` will actually cast overflown integer to size_t, which isn't what was intended here. Correct thing would be to cast in the following manner `(size_t)int * int`. In this particular case can as well use function which is designed to allocate an array of memory without overflow.
Diffstat (limited to 'source/blender/editors')
0 files changed, 0 insertions, 0 deletions