• Paul Eggert's avatar
    * search.c: Integer overflow fixes · a0efffc8
    Paul Eggert authored
    (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'.
    a0efffc8
search.c 95 KB