-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi there,
Has anyone come across this so far...?
root@dev1:/tmp/work_dir/freeswitch/src/mod/endpoints/mod_wsbridge# make
CC mod_wsbridge_la-mod_wsbridge.lo
mod_wsbridge.c: In function 'wsbridge_callback_ws':
mod_wsbridge.c:682:5: error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
strncpy(bugfree_message + 1, dtmf_json_unformatted, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_wsbridge.c:677:12: note: length computed here
size = strlen(dtmf_json_unformatted);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_wsbridge.c:422:3: error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
strncpy(bugfree_message + 1, message, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_wsbridge.c:419:10: note: length computed here
size = strlen(message);
^~~~~~~~~~~~~~~
In function 'wsbridge_strncpy_null_term.part.7',
inlined from 'wsbridge_strncpy_null_term' at mod_wsbridge.c:1702:13,
inlined from 'channel_outgoing_channel' at mod_wsbridge.c:1469:4:
mod_wsbridge.c:1707:2: error: 'strncpy' specified bound 50 equals destination size [-Werror=stringop-truncation]
strncpy(dst, src, len);
^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:717: mod_wsbridge_la-mod_wsbridge.lo] Error 1
Some system details below:
root@dev1:/tmp/work_dir/freeswitch/src/mod/endpoints/mod_wsbridge# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)
root@dev1:/tmp/work_dir/freeswitch/src/mod/endpoints/mod_wsbridge# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Possibly some minor C tweaks required...? Or adjust some CFLAGS...?
Metadata
Metadata
Assignees
Labels
No labels