fsarchiver.c: In function ‘process_cmdline’:
fsarchiver.c:405:68: warning: ‘__builtin_snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
405 | snprintf((char*)g_options.encryptpass, FSA_MAX_PASSLEN, "%s", passtmp);
| ^
In file included from /usr/include/stdio.h:970,
from common.h:21,
from fsarchiver.c:30:
In function ‘snprintf’,
inlined from ‘process_cmdline’ at fsarchiver.c:405:9:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin_snprintf’ output between 7 and 65 bytes into a destination of size 64
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
oper_save.c: In function ‘oper_save’:
oper_save.c:1338:56: warning: the comparison will always evaluate as ‘true’ for the address of ‘devpath’ will never be NULL [-Waddress]
1338 | for (i=0; (i < argc) && (devinfo[i].devpath!=NULL) && (get_interrupted()==false); i++)
| ^~
oper_save.c:80:17: note: ‘devpath’ declared here
80 | { char devpath[PATH_MAX];
| ^~~~~~~
oper_restore.c: In function ‘extractar_read_mainhead’:
oper_restore.c:1156:39: warning: the comparison will always evaluate as ‘false’ for the address of ‘encryptpass’ will never be NULL [-Waddress]
1156 | passlen=(g_options.encryptpass==NULL)?(0):(strlen((char*)g_options.encryptpass));
| ^~
In file included from oper_restore.c:38:
options.h:43:14: note: ‘encryptpass’ declared here
43 | u8 encryptpass[FSA_MAX_PASSLEN+1];
| ^~~~~~~~~~~
oper_restore.c:1157:35: warning: the comparison will always evaluate as ‘false’ for the address of ‘encryptpass’ will never be NULL [-Waddress]
1157 | if ((g_options.encryptpass==NULL) || (passlenFSA_MAX_PASSLEN))
| ^~
options.h:43:14: note: ‘encryptpass’ declared here
43 | u8 encryptpass[FSA_MAX_PASSLEN+1];
| ^~~~~~~~~~~
oper_restore.c: In function ‘extractar_filesystem_extract’:
oper_restore.c:1250:51: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 128 [-Wformat-truncation=]
1250 | snprintf(filesystem, sizeof(filesystem), "%s", tempbuf);
| ^~ ~~~~~~~
In file included from /usr/include/stdio.h:970,
from /usr/include/gpg-error.h:65,
from /usr/include/gcrypt.h:31,
from oper_restore.c:31:
In function ‘snprintf’,
inlined from ‘extractar_filesystem_extract’ at oper_restore.c:1250:9:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin_snprintf’ output between 1 and 1024 bytes into a destination of size 128
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
archreader.c: In function ‘archreader_close’:
archreader.c:129:5: warning: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
129 | lockf(ai->archfd, F_ULOCK, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs_ext2.c: In function ‘extfs_getinfo’:
fs_ext2.c:461:52: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
461 | strncpy(label, super->s_volume_name, sizeof(super->s_volume_name));
| ^
fs_ext2.c: In function ‘extfs_mkfs’:
fs_ext2.c:230:39: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 64 [-Wformat-truncation=]
230 | snprintf(uuid, sizeof(uuid), "%s", buffer);
| ^~ ~~~~~~
In file included from /usr/include/stdio.h:970,
from fs_ext2.c:22:
In function ‘snprintf’,
inlined from ‘extfs_mkfs’ at fs_ext2.c:230:9:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin_snprintf’ output between 1 and 2048 bytes into a destination of size 64
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
common.c: In function ‘exec_command’:
common.c:401:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
401 | read(mystdout, stdoutbuf+outpos, stdoutsize-outpos-1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common.c:403:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
403 | read(mystderr, stderrbuf+errpos, stderrsize-errpos-1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs_xfs.c: In function ‘xfs_mkfs’:
fs_xfs.c:227:39: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 64 [-Wformat-truncation=]
227 | snprintf(uuid, sizeof(uuid), "%s", buffer);
| ^~ ~~~~~~
In file included from /usr/include/stdio.h:970,
from fs_xfs.c:23:
In function ‘snprintf’,
inlined from ‘xfs_mkfs’ at fs_xfs.c:227:9:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin_snprintf’ output between 1 and 2048 bytes into a destination of size 64
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
devinfo.c: In function ‘get_devinfo’:
devinfo.c:83:71: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 256 [-Wformat-truncation=]
83 | snprintf(outdev->longname, sizeof(outdev->longname), "%s", temp);
| ^~ ~~~~
In file included from /usr/include/stdio.h:970,
from common.h:21,
from devinfo.c:36:
In function ‘snprintf’,
inlined from ‘get_devinfo’ at devinfo.c:83:17:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin_snprintf’ output between 1 and 4096 bytes into a destination of size 256
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~