bug-texinfo
[Top][All Lists]
Advanced

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

Re: texinfo-6.7.91 pretest


From: Gavin Smith
Subject: Re: texinfo-6.7.91 pretest
Date: Fri, 18 Jun 2021 16:32:47 +0100
User-agent: Mutt/1.9.4 (2018-02-28)

On Fri, Jun 18, 2021 at 06:52:40AM -0700, Per Bothner wrote:
> 
> 
> On 6/18/21 6:07 AM, Eli Zaretskii wrote:
> > > From: Gavin Smith <gavinsmith0123@gmail.com>
> > > Date: Tue, 15 Jun 2021 21:44:54 +0100
> > > 
> > > The next pretest for the next Texinfo release has been uploaded to
> > > 
> > > https://alpha.gnu.org/gnu/texinfo/texinfo-6.7.91.tar.xz
> > > 
> > > We hope to release this fairly soon barring the discovery of any major 
> > > issues.
> > 
> > This pretest builds cleanly with MinGW on MS-Windows, and passes all
> > the tests (with some tests skipped, as expected).
> > 
> > The only compilation warning is this:
> > 
> >       gcc -DHAVE_CONFIG_H -I. -I..  -I..                               
> > -I../gnulib/lib                         -I../gnulib/lib                     
> >     -DLOCALEDIR=\"d:/usr/share/locale\"  -Id:/usr/include  -O2 -gdwarf-4 
> > -g3 -MT install-info.o -MD -MP -MF .deps/install-info.Tpo -c -o 
> > install-info.o install-info.c
> >       install-info.c: In function 'split_entry.constprop':
> >       install-info.c:1633:11: warning: 'strncat' specified bound depends on 
> > the length of the source argument [-Wstringop-overflow=]
> >        1633 |           strncat (*description, ptr, length);
> >        |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >       install-info.c:1632:27: note: length computed here
> >        1632 |           size_t length = strlen (ptr);
> >        |                           ^~~~~~~~~~~~
> 
> This may be a warning that it is pointless to use strncat in a case
> that has exactly the same effect as strcat.
> 
> The following avoids the warning.

If we were going to mess about with this code it would be better
to rewrite it to use neither strncat not strcat.



reply via email to

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