Snippets for genext2fs 1.6.3 from Fedora ppc64le
Sourced from https://kojipkgs.fedoraproject.org/packages/genext2fs/1.6.3/1.fc46/data/logs/ppc64le/build.log.
-
genext2fs.c:2755:66: 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] 2755 | strncpy(pathbuf, tarhead->prefix, sizeof tarhead->prefix); | ^~~~~~~ -
genext2fs.c:2756:101: 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] 2756 | strncpy(pathbuf+strnlen(pathbuf, sizeof pathbuf), tarhead->filename, sizeof tarhead->filename); | ^~~~~~~ -
genext2fs.c:2880:41: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2880 | fread(longname, longname_size, 1, fh); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
genext2fs.c:2892:41: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2892 | fread(longlink, longlink_size, 1, fh); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
genext2fs.c:1406:9: warning: ‘__strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1406 | strncpy(((char *) dw->last_d) + sizeof(directory), name, nlen); | ^ -
genext2fs.c:1456:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1456 | strncpy(((char *) dw->last_d) + sizeof(directory), name, nlen); | ^ -
genext2fs.c:1430:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1430 | strncpy(((char *) dw->last_d) + sizeof(directory), name, nlen); | ^ -
genext2fs.c:2755:25: warning: ‘strncpy’ output may be truncated copying 155 bytes from a string of length 166 [-Wstringop-truncation] 2755 | strncpy(pathbuf, tarhead->prefix, sizeof tarhead->prefix); | ^ -
genext2fs.c:2756:25: warning: ‘__strncpy_chk’ output may be truncated copying 100 bytes from a string of length 511 [-Wstringop-truncation] 2756 | strncpy(pathbuf+strnlen(pathbuf, sizeof pathbuf), tarhead->filename, sizeof tarhead->filename); | ^ -
genext2fs.c:1430:9: warning: ‘strncpy’ output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation] 1430 | strncpy(((char *) dw->last_d) + sizeof(directory), name, nlen); | ^ -
genext2fs.c:1406:9: warning: ‘__strncpy_chk’ output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 1406 | strncpy(((char *) dw->last_d) + sizeof(directory), name, nlen); | ^ -
genext2fs.c:4734:17: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] 4734 | strncpy((char *)fs->sb->s_volume_name, volumelabel, | ^