• Paul Eggert's avatar
    * macros.c: Integer and buffer overflow fixes. · 6d84508d
    Paul Eggert authored
    * keyboard.h (struct keyboard.kbd_macro_bufsize):
    * macros.c (Fstart_kbd_macro, store_kbd_macro_char):
    Use ptrdiff_t, not int, for sizes.
    Don't increment bufsize until after realloc succeeds.
    Check for size-calculation overflow.
    (Fstart_kbd_macro): Use EMACS_INT, not int, for XINT result.
    6d84508d
ChangeLog 199 KB