Blender Git Commit Log
Git Commits -> Revision a16e465
Revision a16e465 by Sergey Sharybin (master) March 6, 2020, 14:35 (GMT) |
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. |
Commit Details:
Full Hash: a16e4652e3c80504790730b66145b7aef14b3648
Parent Commit: c60366c
Lines Changed: +1, -1
1 Modified Path:
/source/blender/blenlib/intern/BLI_mempool.c (+1, -1) (Diff)