GNU bug report logs - #1245
define-prefix-command with a name, pressing key sequence bound to it results in memory corruption

Previous Next

Package: emacs;

Reported by: poberauer <at> yahoo.co.uk

Date: Fri, 24 Oct 2008 23:40:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 1245-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: emacs-devel <at> gnu.org
Cc: 1245-done <at> debbugs.gnu.org
Subject: Re: define-prefix-command with a name, pressing key sequence bound to it results in memory corruption
Date: Sat, 25 Oct 2008 16:25:14 -0400
Chong Yidong <cyd <at> stupidchicken.com> writes:

> I can reproduce this.
>
> It's strange that realloc fails.  If you replacing the xrealloc in
> enlarge_buffer_text with xmalloc/bcopy/xfree, Emacs crashes at the call
> to malloc.
>
> Anyone have an idea what causes this?

Found the bug: a bad strcpy in read_char_minibuf_menu_prompt.  I've
checked in a fix.




This bug report was last modified 16 years and 215 days ago.

Previous Next


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