]> git.eshelyaron.com Git - emacs.git/commit
Fix some int overflows in profiler.c
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 Jul 2015 16:55:49 +0000 (09:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 Jul 2015 17:13:36 +0000 (10:13 -0700)
commit0f23e95b29a7a0a07bba0e9bc796cd7b7bc7232a
treecc081e1fbfeae45269d3a8c64b3be33e4f53fb02
parent8a7a99e0280103e223b8e1a717107bdf9b8eabc7
Fix some int overflows in profiler.c

* src/profiler.c (make_log): Make args EMACS_INT, not int,
to avoid unwanted behavior on 'int' overflow.
(make_log, evict_lower_half, record_backtrace):
Use ptrdiff_t, not int, for object indexes.
src/profiler.c