From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.diffs,gmane.emacs.devel Subject: Re: emacs-27 41232e6: Avoid crashes due to bidi cache being reset during redisplay Date: Sun, 31 May 2020 18:12:53 +0300 Message-ID: <837dwskuiy.fsf@gnu.org> References: <20200531142645.22884.78754@vcs0.savannah.gnu.org> <20200531142647.08FCA20A2B@vcs0.savannah.gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="99929"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-diffs@gnu.org, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-diffs-bounces+gnu-emacs-diffs=m.gmane-mx.org@gnu.org Sun May 31 17:13:00 2020 Return-path: Envelope-to: gnu-emacs-diffs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfPe0-000Pty-9O for gnu-emacs-diffs@m.gmane-mx.org; Sun, 31 May 2020 17:13:00 +0200 Original-Received: from localhost ([::1]:48298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfPdz-0001w4-AR for gnu-emacs-diffs@m.gmane-mx.org; Sun, 31 May 2020 11:12:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfPdv-0001vt-Hi; Sun, 31 May 2020 11:12:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55498) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfPdv-0003zb-7d; Sun, 31 May 2020 11:12:55 -0400 Original-Received: from [176.228.60.248] (port=2844 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jfPdu-0005me-B3; Sun, 31 May 2020 11:12:54 -0400 In-Reply-To: (message from Pip Cet on Sun, 31 May 2020 14:44:54 +0000) X-BeenThere: emacs-diffs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for Emacs changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-diffs-bounces+gnu-emacs-diffs=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-diffs" Xref: news.gmane.io gmane.emacs.diffs:156395 gmane.emacs.devel:251677 Archived-At: > From: Pip Cet > Date: Sun, 31 May 2020 14:44:54 +0000 > Cc: emacs-diffs@gnu.org > > > + void *itdata = bidi_shelve_cache (); > > But what if we're out of memory? bidi_shelve_cache will call xmalloc... xmalloc calls memory_full if that happens.