supermin-5.3.4-4.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
supermin-5.3.4-build/supermin-5.3.4/init/init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2]
supermin-5.3.4-build/supermin-5.3.4/init/init.c:117:15: warning[deadcode.DeadStores]: Value stored to 'mount_options' during its initialization is never read
#  115|     uint64_t delay_ns;
#  116|     int major, minor;
#  117|->   const char *mount_options = "";
#  118|   
#  119|   #define NANOSLEEP(ns) do {                      \

Error: CPPCHECK_WARNING: [#def3]
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c: scope_hint: In function ‘ext2_write_host_file’
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c:510:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’
#  508|   
#  509|     err = ext2fs_file_open2 (fs, ino, NULL, EXT2_FILE_WRITE, &file);
#  510|->   if (err != 0)
#  511|       ext2_error_to_exception ("ext2fs_file_open2", err, filename);
#  512|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c:514:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’
#  512|   
#  513|     while ((r = read (fd, buf, sizeof buf)) > 0) {
#  514|->     err = ext2fs_file_write (file, buf, r, &written);
#  515|       if (err != 0)
#  516|         ext2_error_to_exception ("ext2fs_file_open2", err, filename);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c:522:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’
#  520|     }
#  521|   
#  522|->   if (r == -1)
#  523|       unix_error (errno, (char *) "read", caml_copy_string (filename));
#  524|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c: scope_hint: In function ‘ext2_copy_file’
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c:717:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dirname’ where non-null expected
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c:33: included_from: Included from here.
/usr/include/features.h:511: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdio.h:28: included_from: Included from here.
supermin-5.3.4-build/supermin-5.3.4/src/ext2fs-c.c:21: included_from: Included from here.
/usr/include/sys/stat.h:327:12: note: argument 1 of ‘lstat’ must be non-null
#  715|        */
#  716|       struct stat stat1, stat2;
#  717|->     if (lstat (dirname, &stat1) == 0 && S_ISLNK (stat1.st_mode) &&
#  718|   	stat (dirname, &stat2) == 0 && S_ISDIR (stat2.st_mode)) {
#  719|         char cmd[strlen (dirname) + 100];

Error: CPPCHECK_WARNING: [#def8]
supermin-5.3.4-build/supermin-5.3.4/src/librpm-c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-203.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namesupermin-5.3.4-4.fc41
store-results-to/tmp/tmpbgii4cyl/supermin-5.3.4-4.fc41.tar.xz
time-created2024-07-03 18:07:11
time-finished2024-07-03 18:08:29
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbgii4cyl/supermin-5.3.4-4.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpbgii4cyl/supermin-5.3.4-4.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9