GNU bug report logs - #59104
28.2; Uninitialized field command_modes in Lisp_Module_Function

Previous Next

Package: emacs;

Reported by: Richard Copley <rcopley <at> gmail.com>

Date: Mon, 7 Nov 2022 11:32:02 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 59104 <at> debbugs.gnu.org (full text, mbox):

From: Richard Copley <rcopley <at> gmail.com>
To: 59104 <at> debbugs.gnu.org
Subject: Re: 28.2; Uninitialized field command_modes in Lisp_Module_Function
Date: Wed, 9 Nov 2022 16:24:35 +0000
> The command_modes field seems to be uninitialized. This might print a
> random integer, print a randomly selected lisp object from memory, or
> segfault.

I can confirm that changing the 'field' argument from "interactive_form" 
to "command_modes", in the invocation of ALLOCATE_PSEUDOVECTOR in 
allocate_module_function (), fixes the problem. See "emacs-module.c", 
line 564.





This bug report was last modified 2 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.