[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [platform-testers] texinfo-6.6.90 pretest
From: |
Eli Zaretskii |
Subject: |
Re: [platform-testers] texinfo-6.6.90 pretest |
Date: |
Tue, 20 Aug 2019 05:33:25 +0300 |
> From: Bruno Haible <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, Gavin Smith <address@hidden>,
> address@hidden
> Date: Mon, 19 Aug 2019 22:35:45 +0200
>
> Eli Zaretskii wrote:
> > One other issue is that GCC 8 flags many uses of strncat in
> > install-info.c as unsafe:
> >
> > install-info.c: In function 'split_entry':
> > install-info.c:1624:17: warning: 'strncat' specified bound 2 equals
> > source length [-Wstringop-overflow=]
> > strncat (*description, " ", 2);
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
>
> The warnings are clearly pointless, because the amount of memory
> allocated for *description is unknown to the compiler.
>
> Which GCC options did you specify?
I didn't specify any options, the options in effect were those that
the Texinfo build system specifies.
> The GCC documentation [1] explains that -Wstringop-overflow=3 and
> -Wstringop-overflow=4 "may result in warnings for safe code".
The GCC manual also says that -Wstringop-overflow is enabled by
default, so maybe it isn't surprising that we see the warnings.
- texinfo-6.6.90 pretest, Gavin Smith, 2019/08/18
- Re: texinfo-6.6.90 pretest, Eli Zaretskii, 2019/08/19
- Re: [platform-testers] texinfo-6.6.90 pretest,
Eli Zaretskii <=
- Re: [platform-testers] texinfo-6.6.90 pretest, Bruno Haible, 2019/08/20
- Re: [platform-testers] texinfo-6.6.90 pretest, Eli Zaretskii, 2019/08/21
- Re: [platform-testers] texinfo-6.6.90 pretest, Eli Zaretskii, 2019/08/21
- Re: [platform-testers] texinfo-6.6.90 pretest, Hans-Bernhard Bröker, 2019/08/21
- Re: [platform-testers] texinfo-6.6.90 pretest, Eli Zaretskii, 2019/08/21
- Re: [platform-testers] texinfo-6.6.90 pretest, Hans-Bernhard Bröker, 2019/08/22
- Re: [platform-testers] texinfo-6.6.90 pretest, Bruno Haible, 2019/08/22