• Eli Zaretskii's avatar
    Fix crashes in lisp_align_free in a build with GC_MCHECK. · bd650c24
    Eli Zaretskii authored
     src/gmalloc.c (aligned_alloc): Fix adjustment of size of the
     allocated buffer due to alignment.
     (freehook): If the block to be freed was allocated by
     'aligned_alloc', find its real pointer before calling 'free'.
     (mabort) [emacs]: Call 'emacs_abort', not 'abort', to provide a
     backtrace.
    
    Fixes: debbugs:16901
    bd650c24
ChangeLog 385 KB