Skip to content

Align the reference counted allocations

Emmanuele Bassi requested to merge rc-align into master

We need stronger alignment guarantees for the memory allocations done through g_rc_box_alloc_full(): while the passed block size may be aligned, we're not aligning the private data size; this means the overall allocation may become unaligned, and this could raise issues when we use the private data size as an offset to access the reference count.

Fixes: #1581 (closed)

Merge request reports