dpkg-1.21.21-4.fc40

List of Defects

Error: CPPCHECK_WARNING: [#def1]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/basecmds.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/baselist.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/bindings.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/methlist.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/methparse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/pkgcmds.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/pkgdepcon.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/pkglist.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/pkgsublist.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
dpkg-1.21.21-build/dpkg-1.21.21/dselect/pkgtop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
dpkg-1.21.21-build/dpkg-1.21.21/lib/compat/scandir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def13]
dpkg-1.21.21-build/dpkg-1.21.21/lib/compat/unsetenv.c:38:2: warning[unix.Malloc]: Potential leak of memory pointed to by 'q'
#   36|   	strcpy(q, p);
#   37|   	strcat(q, "=");
#   38|-> 	return putenv(q);
#   39|   }

Error: CPPCHECK_WARNING: [#def14]
dpkg-1.21.21-build/dpkg-1.21.21/lib/compat/vsnprintf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/ar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/arch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/compress.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-ctrl-access.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-ctrl-upgrade.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-digest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-override.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/deb-version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/dump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/ehandle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/fields.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/fsys-hash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/meminfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def30]
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|   

Error: CPPCHECK_WARNING: [#def31]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/options.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/parsehelp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/pkg-format.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/pkg-hash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def36]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/progress.c:53:22: warning[-Wmaybe-uninitialized]: 'MEM <unsigned char> [(struct progress *)&progress + 20B]' may be used uninitialized
#   53 |         if (!progress->on_tty)
#      |                      ^
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-files.c: scope_hint: In function 'ensure_allinstfiles_available.part.0'
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-files.c:253:19: note: 'MEM <unsigned char> [(struct progress *)&progress + 20B]' was declared here
#  253 |   struct progress progress;
#      |                   ^
#   51|   	int cur_percent;
#   52|   
#   53|-> 	if (!progress->on_tty)
#   54|   		return;
#   55|   

Error: COMPILER_WARNING (CWE-457): [#def37]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/progress.c:58:21: warning[-Wmaybe-uninitialized]: 'progress.max' may be used uninitialized
#   58 |         cur_percent = (progress->cur * 100) / progress->max;
#      |                     ^
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-files.c: scope_hint: In function 'ensure_allinstfiles_available.part.0'
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/db-fsys-files.c:253:19: note: 'progress.max' was declared here
#  253 |   struct progress progress;
#      |                   ^
#   56|   	progress->cur++;
#   57|   
#   58|-> 	cur_percent = (progress->cur * 100) / progress->max;
#   59|   	if (cur_percent <= progress->last_percent)
#   60|   		return;

Error: CPPCHECK_WARNING: [#def38]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/tarfn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/triglib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
dpkg-1.21.21-build/dpkg-1.21.21/lib/dpkg/version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
dpkg-1.21.21-build/dpkg-1.21.21/src/common/force.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
dpkg-1.21.21-build/dpkg-1.21.21/src/deb/build.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
dpkg-1.21.21-build/dpkg-1.21.21/src/deb/extract.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
dpkg-1.21.21-build/dpkg-1.21.21/src/deb/info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
dpkg-1.21.21-build/dpkg-1.21.21/src/divert/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/archives.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/configure.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/depcon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/enquiry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/filters.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/packages.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/remove.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/script.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/trigproc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/unpack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
dpkg-1.21.21-build/dpkg-1.21.21/src/main/verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
dpkg-1.21.21-build/dpkg-1.21.21/src/query/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def59]
dpkg-1.21.21-build/dpkg-1.21.21/src/query/main.c:761: warning[uninitvar]: Uninitialized variable: filename
#  759|     modstatdb_shutdown();
#  760|   
#  761|->   file_show(filename);
#  762|   
#  763|     return 0;

Error: CPPCHECK_WARNING: [#def60]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/join.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def62]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/join.c:125: warning[nullPointer]: Possible null pointer dereference: refi
#  123|       internerr("empty deb part queue");
#  124|   
#  125|->   partlist = nfmalloc(sizeof(*partlist) * refi->maxpartn);
#  126|     for (i = 0; i < refi->maxpartn; i++)
#  127|       partlist[i] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def63]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/join.c:126: warning[nullPointer]: Possible null pointer dereference: refi
#  124|   
#  125|     partlist = nfmalloc(sizeof(*partlist) * refi->maxpartn);
#  126|->   for (i = 0; i < refi->maxpartn; i++)
#  127|       partlist[i] = NULL;
#  128|     for (pq= queue; pq; pq= pq->nextinqueue) {

Error: CPPCHECK_WARNING: [#def64]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/split.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def66]
dpkg-1.21.21-build/dpkg-1.21.21/src/split/split.c: scope_hint: In function 'mksplit.isra'
dpkg-1.21.21-build/dpkg-1.21.21/src/split/split.c:162:35: warning[-Wmaybe-uninitialized]: 'pkg' may be used uninitialized
#  162 |         version = versiondescribe(&pkg->available.version, vdew_nonambig);
#      |                                   ^
dpkg-1.21.21-build/dpkg-1.21.21/src/split/split.c:62:25: note: 'pkg' was declared here
#   62 |         struct pkginfo *pkg;
#      |                         ^
#  160|   
#  161|   	pkg  = deb_parse_control(file_src);
#  162|-> 	version = versiondescribe(&pkg->available.version, vdew_nonambig);
#  163|   
#  164|   	timestamp_str = getenv("SOURCE_DATE_EPOCH");

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-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
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