Task #94275 - fixed.err
back to task #94275download
Error: GCC_ANALYZER_WARNING (CWE-401): util-linux-2.42.start/login-utils/last.c:48: included_from: Included from here. util-linux-2.42.start/include/xalloc.h: scope_hint: In function ‘xstrdup’ util-linux-2.42.start/include/xalloc.h:95:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(8) + nfiles * 8’ util-linux-2.42.start/include/optutils.h:8: included_from: Included from here. util-linux-2.42.start/login-utils/last.c:46: included_from: Included from here. # 93| ret = strdup(str); # 94| if (!ret) # 95|-> err(XALLOC_EXIT_CODE, "cannot duplicate string"); # 96| return ret; # 97| } Error: GCC_ANALYZER_WARNING (CWE-476): util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_readlink_error_file’ util-linux-2.42.start/lsfd-cmd/lsfd.c:765:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, readlink_error_class.size)’ util-linux-2.42.start/include/c.h:19: included_from: Included from here. # 763| # 764| file = xcalloc(1, readlink_error_class.size); # 765|-> file->class = &readlink_error_class; # 766| # 767| file->proc = proc; Error: GCC_ANALYZER_WARNING (CWE-476): util-linux-2.42.start/lsfd-cmd/lsfd.c: scope_hint: In function ‘new_stat_error_file’ util-linux-2.42.start/lsfd-cmd/lsfd.c:785:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, stat_error_class.size)’ util-linux-2.42.start/lsfd-cmd/lsfd.c:900:26: note: in expansion of macro ‘list_last_entry’ # 783| # 784| file = xcalloc(1, stat_error_class.size); # 785|-> file->class = &stat_error_class; # 786| # 787| file->proc = proc; Error: GCC_ANALYZER_WARNING (CWE-476): util-linux-2.42.start/misc-utils/blkid.c: scope_hint: In function ‘main’ util-linux-2.42.start/misc-utils/blkid.c:889:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’ util-linux-2.42.start/misc-utils/blkid.c:18: included_from: Included from here. # 887| continue; # 888| # 889|-> devices[numdev++] = dev; # 890| } # 891|