• Paul Eggert's avatar
    Minor tweaks to recent UBSan-related fix · 83b0fc30
    Paul Eggert authored
    * src/alloc.c: No need to include stdalign.h; it’s pervasive.
    (GC_STRING_OVERRUN_COOKIE_SIZE): Align to sdata’s alignment,
    so that the code works even if alignof (sdata) exceeds 8.
    Don’t require the cookie size to be 8, as this overly fattens
    32-bit platforms and one DEADBEEF should be enough.
    (GC_STRING_EXTRA): Omit now-unnecessary ‘verify’.
    (allocate_string_data): Omit unnecessary cast.
alloc.c 204 KB