]> git.eshelyaron.com Git - emacs.git/commit
* search.c: Integer overflow fixes
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 17:27:38 +0000 (10:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 17:27:38 +0000 (10:27 -0700)
commita0efffc812bd88fd3a710c84ae3bf0db989298e1
treebdecd3cd7f5fbb26aea3bc08769c2a4e0c256704
parent29ebea3b123db665db1267880df65d0ec697aff3
* search.c: Integer overflow fixes

(Freplace_match): Use ptrdiff_t, not int, for indexes that can
exceed INT_MAX.  Check that EMACS_INT value is in range before
assigning it to the (possibly-narrower) index.
(match_limit): Don't assume that a fixnum can fit in 'int'.
src/ChangeLog
src/search.c