diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-08-20 10:45:47 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-08-20 10:45:47 +0300 |
commit | f2cab8267f22293fc28de9a87f81b535b7955020 (patch) | |
tree | 5dd67f14f132f3de4112279b7cc6070a34d1e4b0 /source | |
parent | 6367845c5146acc371308847d70ed1065dbdde4c (diff) |
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
Diffstat (limited to 'source')
0 files changed, 0 insertions, 0 deletions