emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: crash when function-key-map is nil


From: Nick Roberts
Subject: Re: crash when function-key-map is nil
Date: Fri, 28 Jul 2006 20:11:36 +1200

 >     read_key_sequence is almost 1000 lines long, and I don't understand
 >     how keybuf is used or what it is supposed to contain. Sorry.
 > 
 >     A few other people have been able to reproduce this.
 > 
 > I hope one of them can debug it.

I think the problem is here (in read_key_sequence):

  /* If there is no translation-map, turn off scanning.  */
  fkey.start = fkey.end = KEYMAPP (fkey.map) ? 0 : bufsize + 1;
  keytran.start = keytran.end = KEYMAPP (keytran.map) ? 0 : bufsize + 1;

If function-key-map is nil but key-translation-map is not then further
down uninitialised values of keybuf are scanned (fkey.start = 31):

      ...
      /* Look for this sequence in key-translation-map.
         Scan from keytran.end until we find a bound suffix.  */
      while (keytran.end < fkey.start)
      ...

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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