[Top][All Lists]

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

Re: [platform-testers] texinfo-6.6.90 pretest

From: Andreas Schwab
Subject: Re: [platform-testers] texinfo-6.6.90 pretest
Date: Tue, 17 Sep 2019 20:25:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

On Aug 19 2019, Bruno Haible <address@hidden> wrote:

> 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.

It's not about the size of *description, but the length of "  ", making
it equivalent to strcat.


Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

reply via email to

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