dpkg-1.22.6-1.fc41

List of Defects

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

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

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

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

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

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

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

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

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

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

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

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

Error: CLANG_WARNING: [#def13]
dpkg-1.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/lib/compat/vsnprintf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

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

Error: CPPCHECK_WARNING: [#def19]
dpkg-1.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/lib/dpkg/dump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CPPCHECK_WARNING: [#def28]
dpkg-1.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/lib/dpkg/meminfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def30]
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: CPPCHECK_WARNING: [#def31]
dpkg-1.22.6-build/dpkg-1.22.6/lib/dpkg/options.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CPPCHECK_WARNING: [#def34]
dpkg-1.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/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.22.6-build/dpkg-1.22.6/lib/dpkg/progress.c:52:22: warning[-Wmaybe-uninitialized]: 'MEM <unsigned char> [(struct progress *)&progress + 20B]' may be used uninitialized
#   52 |         if (!progress->on_tty)
#      |                      ^
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: 'MEM <unsigned char> [(struct progress *)&progress + 20B]' was declared here
#  254 |   struct progress progress;
#      |                   ^
#   50|   	int cur_percent;
#   51|   
#   52|-> 	if (!progress->on_tty)
#   53|   		return;
#   54|   

Error: COMPILER_WARNING (CWE-457): [#def37]
dpkg-1.22.6-build/dpkg-1.22.6/lib/dpkg/progress.c:57:21: warning[-Wmaybe-uninitialized]: 'progress.max' may be used uninitialized
#   57 |         cur_percent = (progress->cur * 100) / progress->max;
#      |                     ^
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.max' was declared here
#  254 |   struct progress progress;
#      |                   ^
#   55|   	progress->cur++;
#   56|   
#   57|-> 	cur_percent = (progress->cur * 100) / progress->max;
#   58|   	if (cur_percent <= progress->last_percent)
#   59|   		return;

Error: COMPILER_WARNING (CWE-457): [#def38]
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. */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def60]
dpkg-1.22.6-build/dpkg-1.22.6/src/query/main.c:766: warning[uninitvar]: Uninitialized variable: filename
#  764|     modstatdb_shutdown();
#  765|   
#  766|->   file_show(filename);
#  767|   
#  768|     return 0;

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

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

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

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

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

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

Error: COMPILER_WARNING (CWE-457): [#def67]
dpkg-1.22.6-build/dpkg-1.22.6/src/split/split.c: scope_hint: In function 'mksplit.isra'
dpkg-1.22.6-build/dpkg-1.22.6/src/split/split.c:162:35: warning[-Wmaybe-uninitialized]: 'pkg' may be used uninitialized
#  162 |         version = versiondescribe(&pkg->available.version, vdew_nonambig);
#      |                                   ^
dpkg-1.22.6-build/dpkg-1.22.6/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.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
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