Blender Git Loki
Git Commits -> Revision d5a2921
Revision d5a2921 by Brecht Van Lommel January 17, 2018, 19:40 (GMT) |
Memory: add MEM_malloc_arrayN() function to protect against overflow. Differential Revision: https://developer.blender.org/D3002 |
Commit Details:
Full Hash: d5a29213c977bfa040ba5afa448adfa73788cd1d
Parent Commit: a32fd14
Lines Changed: +203, -0
2 Added Paths:
/intern/guardedalloc/intern/mallocn_inline.h (+56, -0) (View)
/tests/gtests/guardedalloc/guardedalloc_overflow_test.cc (+61, -0) (View)
/tests/gtests/guardedalloc/guardedalloc_overflow_test.cc (+61, -0) (View)
7 Modified Paths:
/intern/guardedalloc/CMakeLists.txt (+1, -0) (Diff)
/intern/guardedalloc/intern/mallocn.c (+4, -0) (Diff)
/intern/guardedalloc/intern/mallocn_guarded_impl.c (+30, -0) (Diff)
/intern/guardedalloc/intern/mallocn_intern.h (+6, -0) (Diff)
/intern/guardedalloc/intern/mallocn_lockfree_impl.c (+30, -0) (Diff)
/intern/guardedalloc/MEM_guardedalloc.h (+14, -0) (Diff)
/tests/gtests/guardedalloc/CMakeLists.txt (+1, -0) (Diff)
/intern/guardedalloc/intern/mallocn.c (+4, -0) (Diff)
/intern/guardedalloc/intern/mallocn_guarded_impl.c (+30, -0) (Diff)
/intern/guardedalloc/intern/mallocn_intern.h (+6, -0) (Diff)
/intern/guardedalloc/intern/mallocn_lockfree_impl.c (+30, -0) (Diff)
/intern/guardedalloc/MEM_guardedalloc.h (+14, -0) (Diff)
/tests/gtests/guardedalloc/CMakeLists.txt (+1, -0) (Diff)