From xemacs-m  Sun Feb 16 21:54:15 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA07257
	for <xemacs-beta@xemacs.org>; Sun, 16 Feb 1997 21:54:11 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id UAA27330;
	Sun, 16 Feb 1997 20:05:32 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: 20.0-b1 CRASH
References: <kigsp2wnn83.fsf@jagor.srce.hr>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Hrvoje Niksic's message of 17 Feb 1997 04:08:28 +0100
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 16 Feb 1997 20:05:29 -0800
Message-ID: <m27mk8axh2.fsf@altair.xemacs.org>
Lines: 32
X-Mailer: Gnus v5.4.13/XEmacs 20.1

Hrvoje Niksic writes:

> I was playing with keyboard-macro stuff, and there it goes.  It might
> be repeatable -- it crashed in `key-binding', when given an enormous
> vector:

Thanks for the report Hrvoje.

key-binding is *not* where it is crashing (thanks to compiling with
--use-union-type, this was easy to track down).  It is perfectly
repeatable and affects all XEmacsen back to XEmacs-19.13.

Index: keymap.c
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/src/keymap.c,v
retrieving revision 1.3
diff -u -r1.3 keymap.c
--- keymap.c	1997/02/15 22:22:19	1.3
+++ keymap.c	1997/02/17 03:45:18
@@ -2095,7 +2095,7 @@
   if (nkeys == 0)
     return Qnil;
 
-  if (nkeys > (countof (kkk)))
+  if (nkeys < (countof (kkk)))
     raw_keys = kkk;
   else
     raw_keys = (struct key_data *) alloca (sizeof (struct key_data) * nkeys);

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

