diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-07-05 20:06:29 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-07-05 20:06:29 +0300 |
commit | 57b3e30bb29d904180b651422ab58341debe84cb (patch) | |
tree | cb6561a3ef8100dc64654beb65c70623798839aa /lisp/emacs-lisp/lisp.el | |
parent | ed94e6d7bf6751592ff3dadb2b87f03ffaab3bfa (diff) | |
download | emacs-57b3e30bb29d904180b651422ab58341debe84cb.tar.gz emacs-57b3e30bb29d904180b651422ab58341debe84cb.tar.bz2 emacs-57b3e30bb29d904180b651422ab58341debe84cb.zip |
Empty the bidi cache "stack" when it->sp is zeroed.
Solves crashes due to overflow of bidi cache stack.
Make sure cache is saved and restored around all temporary iterations.
src/dispnew.c (buffer_posn_from_coords): Save and restore the bidi
cache around display iteration.
src/window.c (Fwindow_end, window_scroll_pixel_based)
(displayed_window_lines, Frecenter): Save and restore the bidi
cache around display iteration.
src/bidi.c (bidi_unshelve_cache): Ensure we have enough space before
restoring the shelved cache.
(bidi_cache_ensure_space): Don't assume the required size is just
one BIDI_CACHE_CHUNK away.
src/xdisp.c (back_to_previous_visible_line_start, reseat_1)
(init_iterator): Empty the bidi cache "stack".
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions