blender/intern/guardedalloc
Jacques Lucke f2cab8267f Memory: Fix guarded aligned malloc with small alignment
When calling `MEM_guarded_mallocN_aligned` with an alignment of 4,
a pointer that was returned that is 4 byte but not 8 byte aligned.
When freeing this pointer, `MEM_guarded_freeN` thinks that it is an
illegal pointer, because it asserts that `((intptr_t)memh) & 0x7 == 0`.

The fix is to always use at least 8 byte alignment.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D5529
2019-08-20 09:45:47 +02:00
..
cpp ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
intern Memory: Fix guarded aligned malloc with small alignment 2019-08-20 09:45:47 +02:00
test/simpletest Cleanup: comments (long lines) in various intern/ libs 2019-05-01 21:00:56 +10:00
CMakeLists.txt ClangFormat: apply to source, most of intern 2019-04-17 06:21:24 +02:00
MEM_guardedalloc.h Cleanup: comments (long lines) in various intern/ libs 2019-05-01 21:00:56 +10:00
mmap_win.h doxygen: add newline after \file 2019-02-18 08:22:12 +11:00