hi,
just forwarding some warning i got in compiling backuppc rsync if it helps to
have the info:
socket.c: In function ‘open_socket_out’:
socket.c:76:59: warning: ‘%s’ directive output may be truncated writing up to
1023 bytes into a region of size between 976 and 1005 [-Wformat-truncation=]
76 | snprintf(buffer, sizeof buffer, "CONNECT %s:%d HTTP/1.0%s%s\r\n\r\n",
| ^~
77 | host, port, authhdr, authbuf);
| ~~~~~~~
In file included from /usr/include/stdio.h:867,
from rsync.h:318,
from socket.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note:
‘__builtin___snprintf_chk’ output 24 or more bytes (assuming 1076) into a
destination of size 1024
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I. -I. -I./zlib -I./popt -g -O2 -DHAVE_CONFIG_H -Wall -W -c popt/popt.c
-o popt/popt.o
In file included from /usr/include/string.h:495,
from popt/system.h:40,
from popt/popt.c:11:
In function ‘strncpy’,
inlined from ‘expandNextArg’ at popt/popt.c:629:6:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning:
‘__builtin_strncpy’ output truncated before terminating nul copying as many
bytes from a string as its length [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
popt/popt.c: In function ‘expandNextArg’:
popt/popt.c:624:13: note: length computed here
624 | alen = strlen(a);
| ^~~~~~~~~
VRSYNC="3.1.3.0"
--
cordialement,
Ghislain
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/