Fixed defects

List of Defects

Error: COMPILER_WARNING: [#def1]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/mlib.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|   

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.22.6-1.fc41
diffbase-store-results-to/tmp/tmpubnfatks/dpkg-1.22.6-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:30:03
diffbase-time-finished2024-07-03 12:32:28
diffbase-toolcsmock
diffbase-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'
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.21.21-4.fc40
store-results-to/tmp/tmp6xas1hbe/dpkg-1.21.21-4.fc40.tar.xz
time-created2024-07-03 12:26:59
time-finished2024-07-03 12:29:40
titleFixed defects
toolcsmock
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'
tool-versioncsmock-3.5.3-1.el9