]> git.eshelyaron.com Git - emacs.git/commit
* macros.c: Integer and buffer overflow fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Jun 2011 06:31:41 +0000 (23:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Jun 2011 06:31:41 +0000 (23:31 -0700)
commit6d84508d181fec22ef538b5a6ba7e2072d1de8e7
treeef8d0592e00b9122e5a0762e6c0a42191fab5e73
parent20270765bee11c46dc5a16ccca169751ce4e89ea
* macros.c: Integer and buffer overflow fixes.

* 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.
src/ChangeLog
src/keyboard.h
src/macros.c