[Top][All Lists]

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

Re: [platform-testers] texinfo-6.6.90 pretest

From: Bruno Haible
Subject: Re: [platform-testers] texinfo-6.6.90 pretest
Date: Mon, 19 Aug 2019 22:35:45 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-157-generic; KDE/5.18.0; x86_64; ; )

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?

The GCC documentation [1] explains that -Wstringop-overflow=3 and
-Wstringop-overflow=4 "may result in warnings for safe code".



reply via email to

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