Actions
Bug #3421
closedgcc 8.1.0 fails to build libosmocore: src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation]
Start date:
07/26/2018
Due date:
% Done:
100%
Spec Reference:
Description
▶ gcc --version gcc (Debian 8.1.0-12) 8.1.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
make -C libosmocore -j 9 check make[1]: Entering directory '/n/s/dev/make/libosmocore' make check-recursive make[2]: Entering directory '/n/s/dev/make/libosmocore' Making check in include make[3]: Entering directory '/n/s/dev/make/libosmocore/include' make check-am make[4]: Entering directory '/n/s/dev/make/libosmocore/include' make[4]: Nothing to be done for 'check-am'. make[4]: Leaving directory '/n/s/dev/make/libosmocore/include' make[3]: Leaving directory '/n/s/dev/make/libosmocore/include' Making check in src make[3]: Entering directory '/n/s/dev/make/libosmocore/src' make check-am make[4]: Entering directory '/n/s/dev/make/libosmocore/src' CC socket.lo CC sercomm.lo CC prbs.lo CC isdnhdlc.lo CC conv_acc_sse.lo CC conv_acc_sse_avx.lo CC msgfile.lo CC serial.lo CC plugin.lo ../../../src/libosmocore/src/socket.c: In function ‘osmo_sock_unix_init’: ../../../src/libosmocore/src/socket.c:599:2: error: ‘strncpy’ specified bound 108 equals destination size [-Werror=stringop-truncation] strncpy(local.sun_path, socket_path, sizeof(local.sun_path)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [Makefile:548: socket.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory '/n/s/dev/make/libosmocore/src' make[3]: *** [Makefile:645: check] Error 2 make[3]: Leaving directory '/n/s/dev/make/libosmocore/src' make[2]: *** [Makefile:604: check-recursive] Error 1 make[2]: Leaving directory '/n/s/dev/make/libosmocore' make[1]: *** [Makefile:895: check] Error 2 make[1]: Leaving directory '/n/s/dev/make/libosmocore' make: *** [Makefile:93: .make.libosmocore.build] Error 2
Actions