Task #376 - dpkg-1.22.6-1.fc41/scan-results.err

back to task #376
download
Error: CPPCHECK_WARNING:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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):
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):
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):
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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):
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:
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:
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):
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):
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:
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:
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):
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");