• Emmanuele Bassi's avatar
    Align the reference counted allocations · 87f0a5a2
    Emmanuele Bassi authored
    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
    87f0a5a2
grcboxprivate.h 1.91 KB