emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-27 41232e6: Avoid crashes due to bidi cache being reset during


From: Pip Cet
Subject: Re: emacs-27 41232e6: Avoid crashes due to bidi cache being reset during redisplay
Date: Sun, 31 May 2020 14:44:54 +0000

On Sun, May 31, 2020 at 2:26 PM Eli Zaretskii <eliz@gnu.org> wrote:
> diff --git a/src/xdisp.c b/src/xdisp.c
> index bff6218..60848f4 100644
> --- a/src/xdisp.c
> +++ b/src/xdisp.c
> @@ -11539,7 +11539,9 @@ display_echo_area_1 (ptrdiff_t a1, Lisp_Object a2)
>    /* Display.  */
>    clear_glyph_matrix (w->desired_matrix);
>    XSETWINDOW (window, w);
> +  void *itdata = bidi_shelve_cache ();

But what if we're out of memory? bidi_shelve_cache will call xmalloc...

(Playing around with this, the composition code also tries to allocate
memory when I call memory_full.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]