bug-texinfo
[Top][All Lists]
Advanced

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

Re: Info: segfault on get-help-window with ‘invalid’ infokey


From: Bugsy Abatantuono
Subject: Re: Info: segfault on get-help-window with ‘invalid’ infokey
Date: Sun, 21 Jan 2024 02:37:26 +0000

> 3. Type: M-x describe-key RET a RET (segfault)

Hey Gavin, I stole your fix and it seems to work here too:

--- a/info/infodoc.c
+++ b/info/infodoc.c
@@ -466,7 +466,8 @@
       *k++ = keystroke;
       *k = '\0';
 
-      if (map[keystroke].value.function == NULL)
+      if (map[keystroke].value.function == NULL
+          || !map[keystroke].value.function->func /* "invalid" mapping */)
         {
           message_in_echo_area (_("%s is undefined"), pretty_keyseq (keys));
           return;



reply via email to

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