[Top][All Lists]

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

Re: [Linphone-developers] Compile failure

From: Nick Briggs
Subject: Re: [Linphone-developers] Compile failure
Date: Sun, 29 Jul 2018 13:51:44 -0700

GCC 8 introduced the -Wstringop-truncation because failure to NUL terminate strings as a result of a "strncpy(dest, src, sizeof(dest))" often leads to later code wandering off the end of the unterminated destination string.  strncpy()'s definition and behavior hasn't changed.

There's an article on it at

I believe that the folks at Belledonne Communications do monitor this list.

-- Nick Briggs

On Jul 29, 2018, at 1:01 PM, Robert Dyck <address@hidden> wrote:

I believe it is due to a change in the C standard library. The warning means
that the new version of the function may truncate the string. This triggers a
warning. The linphone build system treats warnings as errors. I tried setting
"enable_strict" to no but it didn't help. cmake said it was an unused option.

I have my doubts that the developers monitor this list.
Rob D

On Sunday, July 29, 2018 12:31:34 PM PDT Bernd Kuhls wrote:
Am Sun, 17 Jun 2018 14:22:29 -0700 schrieb Robert Dyck:
Dear developers, FYI
Source is from git as June 17.

[ 29%] Building C object src/CMakeFiles/mediastreamer_voip.dir/


audiofilters/tonedetector.c:* In function ‘*detector_process*’:
audiofilters/tonedetector.c:176:8:* *error: *‘*strncpy*’ specified

bound 8 equals

destination size [*-Werror=stringop-trunca*


same here while building linphone-desktop for linux with git master HEAD
after updating Debian testing to gcc8.

Regards, Bernd

Linphone-developers mailing list

Linphone-developers mailing list

reply via email to

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