🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98912

bug in makeinfo.c in elisp

#98912
From: "Marek Rychlik"
Date: Sat, 02 Feb 1991 04:41
35 lines
1554 bytes
Function accumulate_token calls xrealloc with NULL pointer if
accumulator has just been initialized. I made the code work by
replacing this definition

----------------------------------------------------------------
/* Buggy! */

void
initialize_token_accumulator (accumulator)
     struct token_accumulator * accumulator;
{
  (accumulator -> length) = 0;
  (accumulator -> index) = 0;
  (accumulator -> tokens) = NULL;
}
----------------------------------------------------------------

with the following definition:

----------------------------------------------------------------
void
initialize_token_accumulator (accumulator)
     struct token_accumulator * accumulator;
{
  (accumulator -> length) = 1;
  (accumulator -> index) = 0;
  (accumulator -> tokens) = (char **) (xmalloc(sizeof(char *)));
}
----------------------------------------------------------------


Thank you.

			Sincerely yours,
			Marek Rychlik
Technical Details
Message-ID: <9102020441.AA01031@greer.math.arizona.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!MATH.ARIZONA.EDU!rychlik

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,f4194170b80aa3b2,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-02-01 20:41:57 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!MATH.ARIZONA.EDU!rychlik
From: rychlik@MATH.ARIZONA.EDU ("Marek Rychlik")
Newsgroups: gnu.emacs.bug
Subject: bug in makeinfo.c in elisp
Message-ID: <9102020441.AA01031@greer.math.arizona.edu>
Date: 2 Feb 91 04:41:57 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35
Approved: bug-gnu-emacs@prep.ai.mit.edu