Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-457): [#def1]
dracut-102-build/dracut-ng-102/src/install/dracut-install.c:148:12: warning[-Wmaybe-uninitialized]: ‘fts’ may be used uninitialized
#  148 |         if (*p)
#      |            ^
dracut-102-build/dracut-ng-102/src/install/dracut-install.c: scope_hint: In function ‘install_modules’
dracut-102-build/dracut-ng-102/src/install/dracut-install.c:1582:34: note: ‘fts’ was declared here
# 1582 |         _cleanup_fts_close_ FTS *fts;
#      |                                  ^~~
#  146|   static inline void fts_closep(FTS **p)
#  147|   {
#  148|->         if (*p)
#  149|                   fts_close(*p);
#  150|   }

Error: COMPILER_WARNING: [#def2]
dracut-102-build/dracut-ng-102/src/install/dracut-install.c: scope_hint: In function ‘find_suppliers_for_sys_node’
dracut-102-build/dracut-ng-102/src/install/dracut-install.c:1576:17: warning[-Wstringop-overflow=]: ‘strncat’ specified bound 3 equals source length
# 1574|                           closedir(d);
# 1575|                   }
# 1576|->                 strncat(node_path, "/..", 3); // Also find suppliers of parents
# 1577|           }
# 1578|   }

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-6.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namedracut-059-22.fc40
diffbase-store-results-to/tmp/tmp923e0qga/dracut-059-22.fc40.tar.xz
diffbase-time-created2024-07-03 12:26:58
diffbase-time-finished2024-07-03 12:28:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp923e0qga/dracut-059-22.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp923e0qga/dracut-059-22.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-6.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedracut-102-1.fc41
store-results-to/tmp/tmpubiola33/dracut-102-1.fc41.tar.xz
time-created2024-07-03 12:29:00
time-finished2024-07-03 12:30:25
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpubiola33/dracut-102-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpubiola33/dracut-102-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9