]> git.eshelyaron.com Git - emacs.git/commit
Limit bidi_find_bracket_pairs to MAX_ALLOCA
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Jun 2017 00:18:30 +0000 (17:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Jun 2017 00:27:58 +0000 (17:27 -0700)
commit35caaf713fb3c3e5e826e52b37e1b389c6bd9cce
tree958d4ccfe87ae8bfb3b8537ec251a971a2137fa8
parent07a3386fbb4e180f017fab11ea963f4f34493f3c
Limit bidi_find_bracket_pairs to MAX_ALLOCA

* src/bidi.c (MAX_BPA_STACK): Now a constant, not a macro.
Shrink it to allow for the two struct bidi_it objects in
the same frame.
(PUSH_BPA_STACK): Avoid integer overflow with enormous bidi cache.
(bidi_find_bracket_pairs): Use compile-time check instead of runtime.
src/bidi.c