bug-texinfo
[Top][All Lists]
Advanced

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

Re: Bug in texinfo 4.0


From: Frank Naumann
Subject: Re: Bug in texinfo 4.0
Date: Mon, 17 Sep 2001 12:16:52 +0200 (CEST)

Hello!

> > *** texinfo-4.0/makeinfo/multi.c.orig       Tue Aug 17 23:06:56 1999
> > --- texinfo-4.0/makeinfo/multi.c    Mon Sep 17 10:26:24 2001
> > ***************
> > *** 199,205 ****
> >
> >     do
> >       {
> > !       if (**params == '{' && (*params)[-1] != '@')
> >           brace_level++;
> >         else if (**params == '}' && (*params)[-1] != '@')
> >           brace_level--;
> > --- 199,205 ----
> >
> >     do
> >       {
> > !       if (**params == '{' && ((*params == start) || ((*params)[-1] != 
> > '@')))
> >           brace_level++;
> >         else if (**params == '}' && (*params)[-1] != '@')
> >           brace_level--;
> >
> >
> > (*params)[-1] is an illegal access in the first do { } while loop because
> > it points to an xmalloc'ed area (if I see this correct). This produced
> > sometimes failures and wrong error messages here.
>
> Can you post a Texinfo source which causes error messages and other
> failures due to this?

It's for example the texinfo.txi file from the texinfo 4.0 distribution.
The problem is that the error depend on the malloc implementation of the
system. If the byte before the malloced area (e.g. (*params)[-1]) is
valid and never '@' you never see the error.

My system is m68k-atari-mint. We not using the glibc and have a different
malloc implementation than the glibc.


Regards,
Frank




reply via email to

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