From xemacs-m  Thu Apr  3 11:42:03 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 LAA24456
	for <xemacs-beta@xemacs.org>; Thu, 3 Apr 1997 11:42:02 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id JAA11259;
	Thu, 3 Apr 1997 09:54:53 -0800
To: xemacs-beta@xemacs.org
Cc: bug-texinfo@prep.ai.mit.edu
Subject: Makeinfo-1.67 bug (from texinfo-3.9)
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>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 03 Apr 1997 09:54:52 -0800
Message-ID: <m2ragsoutv.fsf@altair.xemacs.org>
Lines: 29
X-Mailer: Gnus v5.4.40/XEmacs 20.1(beta11)

I found the bug that causes the newest makeinfo to coredump when
processing the XEmacs internals manual.  The computation on resizing a
line buffer when the line overflows the buffer is screwed up.


*** texinfo-3.9/makeinfo/makeinfo.c~	Fri Oct  4 11:20:54 1996
--- texinfo-3.9/makeinfo/makeinfo.c	Thu Apr  3 09:34:08 1997
***************
*** 8040,8046 ****
        /* A pathological document might have an index entry outside of any
           node.  Don't crash.  Perhaps should warn.  */
        char *index_node = index->node ? index->node : "(none)";
!       unsigned new_length = strlen (index->entry) + strlen (index_node);
        
        if (new_length > line_length)
          {
--- 8040,8047 ----
        /* A pathological document might have an index entry outside of any
           node.  Don't crash.  Perhaps should warn.  */
        char *index_node = index->node ? index->node : "(none)";
! /*      unsigned new_length = strlen (index->entry) + strlen (index_node); */
!       unsigned new_length = 43 + strlen (index_node);
        
        if (new_length > line_length)
          {

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

