Newly introduced defects

List of Defects

Error: COMPILER_WARNING: [#def1]
dpkg-1.22.6-build/dpkg-1.22.6/lib/dpkg/mustlib.c:48:10: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   48 |   return must_alloc(malloc(amount));
#      |          ^
/usr/include/stdlib.h: scope_hint: In member function 'initialsetup'
/usr/include/stdlib.h:672:14: note: in a call to allocation function 'malloc' declared here
#  672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
#      |              ^
#   46|   
#   47|   void *m_malloc(size_t amount) {
#   48|->   return must_alloc(malloc(amount));
#   49|   }
#   50|   

Error: COMPILER_WARNING (CWE-457): [#def2]
dpkg-1.22.6-build/dpkg-1.22.6/lib/dpkg/progress.c:65:9: warning[-Wmaybe-uninitialized]: 'progress.text' may be used uninitialized
#   65 |         fputs(progress->text, stdout);
#      |         ^
dpkg-1.22.6-build/dpkg-1.22.6/lib/dpkg/db-fsys-files.c: scope_hint: In function 'ensure_allinstfiles_available.part.0'
dpkg-1.22.6-build/dpkg-1.22.6/lib/dpkg/db-fsys-files.c:254:19: note: 'progress.text' was declared here
#  254 |   struct progress progress;
#      |                   ^
#   63|   	progress->last_percent = cur_percent;
#   64|   
#   65|-> 	fputs(progress->text, stdout);
#   66|   	/* TRANSLATORS: This is part of the progress output, it is a decimal
#   67|   	 * percentage. */

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-161.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namedpkg-1.21.21-4.fc40
diffbase-store-results-to/tmp/tmp6xas1hbe/dpkg-1.21.21-4.fc40.tar.xz
diffbase-time-created2024-07-03 12:26:59
diffbase-time-finished2024-07-03 12:29:40
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6xas1hbe/dpkg-1.21.21-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp6xas1hbe/dpkg-1.21.21-4.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-161.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedpkg-1.22.6-1.fc41
store-results-to/tmp/tmpubnfatks/dpkg-1.22.6-1.fc41.tar.xz
time-created2024-07-03 12:30:03
time-finished2024-07-03 12:32:28
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpubnfatks/dpkg-1.22.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpubnfatks/dpkg-1.22.6-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9