Snippets for libstatgrab 0.92.2 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/libstatgrab/0.92.2/1.fc46/data/logs/x86_64/build.log.
-
network_stats.c:1281:17: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 8095 [-Wstringop-truncation] 1281 | strncpy(ifr.ifr_name, name, sizeof ifr.ifr_name); | ^ -
process_stats.c:225:9: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] 225 | while( ( rc = readdir_r( proc_dir, dir_entry, &result ) ) == 0 ) { | ^~~~~ -
process_stats.c:459:37: warning: pointer 'f_351' may be used after 'fclose' [-Wuse-after-free=] 459 | #define VECTOR_UPDATE_ERROR_CLEANUP fclose(f); | ^~~~~~~~~ -
process_stats.c:459:37: warning: pointer 'f_464' may be used after 'fclose' [-Wuse-after-free=] 459 | #define VECTOR_UPDATE_ERROR_CLEANUP fclose(f); | ^~~~~~~~~ -
globals.c:102:18: warning: array subscript 'const struct sg_named_mutex[0]' is partly outside array bounds of 'const char[8]' [-Warray-bounds=] 102 | assert( a->name ); | ~^~~~~~ -
statgrab.c:344:25: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation] 344 | strncpy(name_list + pos, name, strlen(name)); | ^ -
saidar.c:148:31: warning: ‘%llu’ directive output may be truncated writing between 1 and 17 bytes into a region of size 10 [-Wformat-truncation=] 148 | snprintf(string, 10, "%llu%c", number, type[x]); | ^~~~