emacs-diffs
[Top][All Lists]
Advanced

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

master 64aabe706f: Fix crash in haiku_message_to_lisp


From: Po Lu
Subject: master 64aabe706f: Fix crash in haiku_message_to_lisp
Date: Wed, 23 Mar 2022 00:03:52 -0400 (EDT)

branch: master
commit 64aabe706f139cce82a10d0c6d1fd9904c51cbcf
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix crash in haiku_message_to_lisp
    
    * src/haikuselect.c (haiku_message_to_lisp): Block input around
    `free'.
---
 src/haikuselect.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/haikuselect.c b/src/haikuselect.c
index 21407eedf0..5a90fe37d2 100644
--- a/src/haikuselect.c
+++ b/src/haikuselect.c
@@ -239,7 +239,10 @@ haiku_message_to_lisp (void *message)
                memory_full (SIZE_MAX);
 
              t1 = build_string (pbuf);
+
+             block_input ();
              free (pbuf);
+             unblock_input ();
              break;
 
            case 'SHRT':



reply via email to

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