rpm-4.19.92-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
rpm-4.19.92-build/rpm-4.19.92/build/build.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
rpm-4.19.92-build/rpm-4.19.92/build/files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
rpm-4.19.92-build/rpm-4.19.92/build/files.c:1131:13: warning[core.NullDereference]: Access to field 'cpioPath' results in a dereference of a null pointer (loaded from variable 'flp')
# 1129|    	/* Merge duplicate entries. */
# 1130|   	while (i < (fl->files.used - 1) &&
# 1131|-> 	    rstreq(flp->cpioPath, flp[1].cpioPath)) {
# 1132|   
# 1133|   	    /* Two entries for the same file found, merge the entries. */

Error: CLANG_WARNING: [#def4]
rpm-4.19.92-build/rpm-4.19.92/build/files.c:1184:6: warning[core.NullDereference]: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'flp')
# 1182|   
# 1183|   	/* Skip files that were marked with %exclude. */
# 1184|-> 	if (flp->flags & RPMFILE_EXCLUDE)
# 1185|   	{
# 1186|   	    argvAdd(&pkg->fileExcludeList, flp->cpioPath);

Error: CLANG_WARNING: [#def5]
rpm-4.19.92-build/rpm-4.19.92/build/files.c:2604:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'buf' is still referred to by the static variable 'olds' upon returning to the caller.  This will be a dangling reference
# 2602|   	    fl->haveCaps = 1;
# 2603|       }
# 2604|->     argvFree(fileNames);
# 2605|   }
# 2606|   

Error: CPPCHECK_WARNING: [#def6]
rpm-4.19.92-build/rpm-4.19.92/build/pack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
rpm-4.19.92-build/rpm-4.19.92/build/parsePreamble.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
rpm-4.19.92-build/rpm-4.19.92/build/parseReqs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
rpm-4.19.92-build/rpm-4.19.92/build/parseScript.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
rpm-4.19.92-build/rpm-4.19.92/build/parseSpec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
rpm-4.19.92-build/rpm-4.19.92/build/parseSpec.c:1253:14: warning[deadcode.DeadStores]: Although the value stored to 'spec' is used in the enclosing expression, the value is never actually read from 'spec'
# 1251|   		spec->BASpecs = _free(spec->BASpecs);
# 1252|   		rpmSpecFree(spec);
# 1253|-> 		*specptr = spec = nspec;
# 1254|   	    }
# 1255|   

Error: CPPCHECK_WARNING: [#def12]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:295:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromProg[0]’
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1677:13: note: in expansion of macro ‘_’
/usr/include/sys/select.h:30: included_from: Included from here.
/usr/include/sys/types.h:179: included_from: Included from here.
/usr/include/sys/param.h:25: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:15: included_from: Included from here.
#  293|       if (doio && (pipe(toProg) < 0 || pipe(fromProg) < 0)) {
#  294|   	rpmlog(RPMLOG_ERR, _("Couldn't create pipe for %s: %m\n"), argv[0]);
#  295|-> 	return -1;
#  296|       }
#  297|       

Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:295:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘toProg[0]’
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1677:13: note: in expansion of macro ‘_’
#  293|       if (doio && (pipe(toProg) < 0 || pipe(fromProg) < 0)) {
#  294|   	rpmlog(RPMLOG_ERR, _("Couldn't create pipe for %s: %m\n"), argv[0]);
#  295|-> 	return -1;
#  296|       }
#  297|       

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c: scope_hint: In function ‘getOutputFrom’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:295:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘toProg[1]’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:87: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1677:13: note: in expansion of macro ‘_’
#  293|       if (doio && (pipe(toProg) < 0 || pipe(fromProg) < 0)) {
#  294|   	rpmlog(RPMLOG_ERR, _("Couldn't create pipe for %s: %m\n"), argv[0]);
#  295|-> 	return -1;
#  296|       }
#  297|       

Error: GCC_ANALYZER_WARNING: [#def16]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:328:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘-1’
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1677:13: note: in expansion of macro ‘_’
#  326|   	    close(toProg[0]);
#  327|   	} else {
#  328|-> 	    dup2(fromProg[1], STDIN_FILENO);
#  329|   	}
#  330|   

Error: GCC_ANALYZER_WARNING: [#def17]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:331:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘-1’
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1677:13: note: in expansion of macro ‘_’
#  329|   	}
#  330|   
#  331|-> 	dup2(fromProg[1], STDOUT_FILENO); /* Make stdout the out pipe */
#  332|   	close(fromProg[1]);
#  333|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c: scope_hint: In function ‘initAttrs’
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1226:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1224|   
# 1225|       for (int i = 0; i < nattrs; i++) {
# 1226|-> 	fc->atypes[i] = rpmfcAttrNew(all_attrs[i]);
# 1227|       }
# 1228|       fc->atypes[nattrs] = NULL;

Error: CLANG_WARNING: [#def19]
rpm-4.19.92-build/rpm-4.19.92/build/rpmfc.c:1226:31: warning[core.NullDereference]: Array access (from variable 'all_attrs') results in a null pointer dereference
# 1224|   
# 1225|       for (int i = 0; i < nattrs; i++) {
# 1226|-> 	fc->atypes[i] = rpmfcAttrNew(all_attrs[i]);
# 1227|       }
# 1228|       fc->atypes[nattrs] = NULL;

Error: CPPCHECK_WARNING: [#def20]
rpm-4.19.92-build/rpm-4.19.92/build/spec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def21]
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmbuild.h:43: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   41|       RPMBUILD_MKBUILDDIR	= (1 << 23),	/*!< Internal use only */
#   42|   
#   43|->     RPMBUILD_NOBUILD	= (1 << 31)	/*!< Don't execute or package. */
#   44|   };
#   45|   

Error: CPPCHECK_WARNING (CWE-758): [#def22]
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmfc.h:40: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   38|       RPMFC_WHITE			= (1 << 29),
#   39|       RPMFC_INCLUDE		= (1 << 30),
#   40|->     RPMFC_ERROR			= (1 << 31)
#   41|   };
#   42|   

Error: CPPCHECK_WARNING (CWE-758): [#def23]
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmfiles.h:91: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   89|       RPMVERIFY_READFAIL	= (1 << 29),	/*!< file read failed */
#   90|       RPMVERIFY_LSTATFAIL	= (1 << 30),	/*!< lstat failed */
#   91|->     RPMVERIFY_LGETFILECONFAIL	= (1 << 31)	/*!< lgetfilecon failed */
#   92|   };
#   93|   

Error: CPPCHECK_WARNING (CWE-758): [#def24]
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmplugin.h:25: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   23|   enum rpmFileActionFlags_e {
#   24|       /* bits 0-15 reserved for actions */
#   25|->     FAF_UNOWNED		= (1 << 31)
#   26|   };
#   27|   typedef rpmFlags rpmFileActionFlags;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmstring.h:117:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmstring.h:10: included_from: Included from here.
/usr/include/string.h: scope_hint: In function ‘rpmstrPoolStreq’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  115|   static inline int rstreq(const char *s1, const char *s2)
#  116|   {
#  117|->     return (strcmp(s1, s2) == 0);
#  118|   }
#  119|   

Error: CLANG_WARNING: [#def26]
rpm-4.19.92-build/rpm-4.19.92/build/parseFiles.c:10: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/build/rpmbuild_internal.h:4: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmbuild.h:10: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmspec.h:9: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmstring.h:117:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  115|   static inline int rstreq(const char *s1, const char *s2)
#  116|   {
#  117|->     return (strcmp(s1, s2) == 0);
#  118|   }
#  119|   

Error: CPPCHECK_WARNING (CWE-758): [#def27]
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmts.h:59: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   57|       RPMTRANS_FLAG_NOARTIFACTS	= (1 << 29),	/*!< from --noartifacts */
#   58|       RPMTRANS_FLAG_NOCONFIGS	= (1 << 30),	/*!< from --noconfigs */
#   59|->     RPMTRANS_FLAG_DEPLOOPS	= (1 << 31)	/*!< from --deploops */
#   60|   };
#   61|   

Error: CPPCHECK_WARNING: [#def28]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/bdb_ro.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/dbiset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/ndb/glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/ndb/rpmidx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/ndb/rpmpkg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/ndb/rpmxdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def34]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/ndb/rpmxdb.c:83:24: warning[core.NullDereference]: Dereference of null pointer
#   81|   static inline void h2lea(unsigned int x, unsigned char *p)
#   82|   {
#   83|->     *(unsigned int *)p = htole32(x);
#   84|   }
#   85|   

Error: CLANG_WARNING: [#def35]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/ndb/rpmxdb.c:719:5: warning[deadcode.DeadStores]: Value stored to 'freecnt' is never read
#  717|   
#  718|       nslots = xdb->nslots;
#  719|->     freecnt = 0;
#  720|       lastslot = xdb->slots;
#  721|       for (i = xdb->slots[0].next; ; lastslot = slot, i = slot->next) {

Error: CPPCHECK_WARNING: [#def36]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def37]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:98:6: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#   96|       if (blob) {
#   97|   	if (!rc)
#   98|-> 	    rc = sqlite3_bind_blob(dbc->stmt, 2, blob, bloblen, NULL);
#   99|       }
#  100|       return dbiCursorResult(dbc);

Error: CLANG_WARNING: [#def38]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:117:6: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  115|   	    rc = sqlite3_bind_int(dbc->stmt, 2, rec->hdrNum);
#  116|   	if (!rc)
#  117|-> 	    rc = sqlite3_bind_int(dbc->stmt, 3, rec->tagNum);
#  118|       }
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c: scope_hint: In function ‘sqlite_pkgdbPut’
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:453:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hdrNum’
#  451|   
#  452|       if (!rc)
#  453|-> 	rc = dbiCursorBindPkg(dbc, *hdrNum, hdrBlob, hdrLen);
#  454|   
#  455|       if (!rc) {

Error: CLANG_WARNING: [#def40]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:453:29: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'hdrNum')
#  451|   
#  452|       if (!rc)
#  453|-> 	rc = dbiCursorBindPkg(dbc, *hdrNum, hdrBlob, hdrLen);
#  454|   
#  455|       if (!rc) {

Error: CLANG_WARNING: [#def41]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:509:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  507|   
#  508|       if (!rc)
#  509|-> 	rc = sqlite_stepPkg(dbc, hdrBlob, hdrLen);
#  510|   
#  511|       return dbiCursorResult(dbc);

Error: CLANG_WARNING: [#def42]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:571:10: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'set')
#  569|   	    unsigned int tnum = sqlite3_column_int(dbc->stmt, 1);
#  570|   
#  571|-> 	    if (*set == NULL)
#  572|   		*set = dbiIndexSetNew(5);
#  573|   	    dbiIndexSetAppendOne(*set, hnum, tnum, 0);

Error: CLANG_WARNING: [#def43]
rpm-4.19.92-build/rpm-4.19.92/lib/backend/sqlite.c:577:11: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'set')
#  575|   
#  576|   	if (sqrc == SQLITE_DONE) {
#  577|-> 	    rc = (*set) ? RPMRC_OK : RPMRC_NOTFOUND;
#  578|   	} else {
#  579|   	    rc = dbiCursorResult(dbc);

Error: CPPCHECK_WARNING: [#def44]
rpm-4.19.92-build/rpm-4.19.92/lib/cpio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
rpm-4.19.92-build/rpm-4.19.92/lib/depends.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def46]
rpm-4.19.92-build/rpm-4.19.92/lib/depends.c:457:6: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  455|   	/* If newer NEVR was already added, we're done */
#  456|   	} else if (oc < 0) {
#  457|-> 	    p = rpmteFree(p);
#  458|   	    goto exit;
#  459|   	}

Error: CLANG_WARNING: [#def47]
rpm-4.19.92-build/rpm-4.19.92/lib/depends.c:679:5: warning[deadcode.DeadStores]: Value stored to 'set2' is never read
#  677|   
#  678|   exit:
#  679|->     set2 = dbiIndexSetFree(set2);
#  680|       return set1 ? set1 : dbiIndexSetNew(0);
#  681|   }

Error: CPPCHECK_WARNING (CWE-476): [#def48]
rpm-4.19.92-build/rpm-4.19.92/lib/depends.c:855: warning[nullPointer]: Possible null pointer dereference: dep
#  853|   	dep = rpmdsN(depds);
#  854|       if (neg) {
#  855|-> 	ndep = (char *)xmalloc(strlen(dep) + 2);
#  856|   	ndep[0] = '!';
#  857|   	strcpy(ndep + 1, dep);

Error: CPPCHECK_WARNING (CWE-476): [#def49]
rpm-4.19.92-build/rpm-4.19.92/lib/depends.c:857: warning[nullPointer]: Possible null pointer dereference: dep
#  855|   	ndep = (char *)xmalloc(strlen(dep) + 2);
#  856|   	ndep[0] = '!';
#  857|-> 	strcpy(ndep + 1, dep);
#  858|   	dep = ndep;
#  859|       }

Error: CPPCHECK_WARNING: [#def50]
rpm-4.19.92-build/rpm-4.19.92/lib/formats.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
rpm-4.19.92-build/rpm-4.19.92/lib/formats.c: scope_hint: In function ‘jsonEscape’
rpm-4.19.92-build/rpm-4.19.92/lib/formats.c:344:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  342|       char *es = NULL;
#  343|       rstrcat(&es, "\"");
#  344|->     for (const char *c = s; *c != '\0'; c++) {
#  345|   	const char *ec = NULL;
#  346|   	switch (*c) {

Error: CPPCHECK_WARNING: [#def52]
rpm-4.19.92-build/rpm-4.19.92/lib/fprint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def53]
rpm-4.19.92-build/rpm-4.19.92/lib/fprint.c:382:3: warning[deadcode.DeadStores]: Value stored to 'foundfi' is never read
#  380|   		rpmsid linkId;
#  381|   
#  382|-> 		foundfi = rpmfilesFree(foundfi);
#  383|   
#  384|   		if (!linktarget || *linktarget == '\0')

Error: CPPCHECK_WARNING: [#def54]
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def55]
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c: scope_hint: In function ‘removeSBITS’
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c:475:20: warning[-Wunused-result]: ignoring return value of ‘fchmodat’ declared with attribute ‘warn_unused_result’
#  475 |             (void) fchmodat(dirfd, path, stb.st_mode & 0777, 0);
#      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  473|   	/* We now know it's not a link so no need to worry about following */
#  474|   	if ((stb.st_mode & 06000) != 0) {
#  475|-> 	    (void) fchmodat(dirfd, path, stb.st_mode & 0777, 0);
#  476|   	}
#  477|   #ifdef WITH_CAP

Error: CLANG_WARNING: [#def56]
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c:1052:5: warning[deadcode.DeadStores]: Value stored to 'fi' is never read
# 1050|   	fp->stage = FILE_UNPACK;
# 1051|       }
# 1052|->     fi = fsmIterFini(fi, &di);
# 1053|   
# 1054|       if (!rc && fx < 0 && fx != RPMERR_ITER_END)

Error: CLANG_WARNING: [#def57]
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c:1105:5: warning[deadcode.DeadStores]: Value stored to 'fi' is never read
# 1103|   
# 1104|   exit:
# 1105|->     fi = fsmIterFini(fi, &di);
# 1106|       Fclose(payload);
# 1107|       free(tid);

Error: CLANG_WARNING: [#def58]
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c:1140:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1138|   	    continue;
# 1139|   
# 1140|-> 	rc = fsmStat(di.dirfd, fp->fpath, 1, &fp->sb);
# 1141|   
# 1142|   	fsmDebug(rpmfiDN(fi), fp->fpath, fp->action, &fp->sb);

Error: CLANG_WARNING: [#def59]
rpm-4.19.92-build/rpm-4.19.92/lib/fsm.c:1145:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1143|   
# 1144|   	/* Run fsm file pre hook for all plugins */
# 1145|-> 	rc = rpmpluginsCallFsmFilePre(plugins, fi, fp->fpath,
# 1146|   				      fp->sb.st_mode, fp->action);
# 1147|   

Error: CPPCHECK_WARNING: [#def60]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def61]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:275:5: warning[deadcode.DeadStores]: Value stored to 'h' is never read
#  273|       h->blob = _free(h->blob);
#  274|   
#  275|->     h = _free(h);
#  276|       return NULL;
#  277|   }

Error: CLANG_WARNING: [#def62]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:464:14: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  462|   	}
#  463|       } else {
#  464|-> 	while ((s = strchr(start, '\0'))) {
#  465|   	    if (--c == 0)
#  466|   		break;

Error: CLANG_WARNING: [#def63]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:611:16: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'it')
#  609|   		if (dataEnd && ((unsigned char *)it) >= dataEnd)
#  610|   		    return -1;
#  611|-> 		*it = htonll(*it);
#  612|   	    }
#  613|   	}   break;

Error: CLANG_WARNING: [#def64]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:619:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'it')
#  617|   		if (dataEnd && ((unsigned char *)it) >= dataEnd)
#  618|   		    return -1;
#  619|-> 		*it = htonl(*it);
#  620|   	    }
#  621|   	}   break;

Error: CLANG_WARNING: [#def65]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:627:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'it')
#  625|   		if (dataEnd && ((unsigned char *)it) >= dataEnd)
#  626|   		    return -1;
#  627|-> 		*it = htons(*it);
#  628|   	    }
#  629|   	}   break;

Error: CPPCHECK_WARNING (CWE-457): [#def66]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:894: error[uninitvar]: Uninitialized variables: &key.data, &key.length, &key.rdlen
#  892|       key.info.tag = tag;
#  893|   
#  894|->     entry = (indexEntry)bsearch(&key, h->index, h->indexUsed, sizeof(*h->index), indexCmp);
#  895|       if (entry == NULL)
#  896|   	return NULL;

Error: CLANG_WARNING: [#def67]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:1061:5: warning[deadcode.DeadStores]: Value stored to 'h' is never read
# 1059|       void * uh = headerExport(h, &uc);
# 1060|   
# 1061|->     h = headerFree(h);
# 1062|       if (uh == NULL)
# 1063|   	return NULL;

Error: CLANG_WARNING: [#def68]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:1066:2: warning[deadcode.DeadStores]: Value stored to 'uh' is never read
# 1064|       nh = headerImport(uh, uc, 0);
# 1065|       if (nh == NULL) {
# 1066|-> 	uh = _free(uh);
# 1067|   	return NULL;
# 1068|       }

Error: CLANG_WARNING: [#def69]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:1701:2: warning[deadcode.DeadStores]: Value stored to 't' is never read
# 1699|   	t += sn;
# 1700|   	memcpy(t, e, en);
# 1701|-> 	t += en;
# 1702|   
# 1703|   	/* Replace i18N string array */

Error: CLANG_WARNING: [#def70]
rpm-4.19.92-build/rpm-4.19.92/lib/header.c:1766:2: warning[deadcode.DeadStores]: Value stored to 'hi' is never read
# 1764|       if (hi != NULL) {
# 1765|   	hi->h = headerFree(hi->h);
# 1766|-> 	hi = _free(hi);
# 1767|       }
# 1768|       return NULL;

Error: CPPCHECK_WARNING: [#def71]
rpm-4.19.92-build/rpm-4.19.92/lib/headerfmt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def72]
rpm-4.19.92-build/rpm-4.19.92/lib/headerfmt.c:195:15: warning[core.NullDereference]: Access to field 'tag' results in a dereference of a null pointer (loaded from variable 'tag')
#  193|   	    hsa->i++;
#  194|   	} else {
#  195|-> 	    tag->tag = headerNextTag(hsa->hi);
#  196|   	    if (tag->tag == RPMTAG_NOT_FOUND)
#  197|   		fmt = NULL;

Error: CLANG_WARNING: [#def73]
rpm-4.19.92-build/rpm-4.19.92/lib/headerfmt.c:451:19: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'token')
#  449|   		if (token == NULL || token->type != PTOK_STRING) {
#  450|   		    token = format + numTokens++;
#  451|-> 		    token->type = PTOK_STRING;
#  452|   		    dst = token->u.string.string = start;
#  453|   		}

Error: CLANG_WARNING: [#def74]
rpm-4.19.92-build/rpm-4.19.92/lib/headerfmt.c:590:15: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'token')
#  588|   	    if (token == NULL || token->type != PTOK_STRING) {
#  589|   		token = format + numTokens++;
#  590|-> 		token->type = PTOK_STRING;
#  591|   		dst = token->u.string.string = start;
#  592|   	    }

Error: CPPCHECK_WARNING: [#def75]
rpm-4.19.92-build/rpm-4.19.92/lib/headerutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def76]
rpm-4.19.92-build/rpm-4.19.92/lib/headerutil.c:259:13: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
#  257|        * casts away const on return.
#  258|        */
#  259|->     while ((i = rpmtdNext(&fileNames)) >= 0) {
#  260|   	char ** needle;
#  261|   	char savechar;

Error: CLANG_WARNING: [#def77]
rpm-4.19.92-build/rpm-4.19.92/lib/headerutil.c:275:2: warning[deadcode.DeadStores]: Value stored to 'needle' is never read
#  273|   	}
#  274|   	len = baseName - filename;
#  275|-> 	needle = dirNames;
#  276|   	savechar = *baseName;
#  277|   	*baseName = '\0';

Error: CPPCHECK_WARNING: [#def78]
rpm-4.19.92-build/rpm-4.19.92/lib/manifest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def79]
rpm-4.19.92-build/rpm-4.19.92/lib/manifest.c:171:17: warning[deadcode.DeadStores]: Although the value stored to 'argv' is used in the enclosing expression, the value is never actually read from 'argv'
#  169|   
#  170|   	if (argvPtr)
#  171|-> 	    *argvPtr = argv = _free(argv);
#  172|   	av = _free(av);
#  173|   	av = nav;

Error: CPPCHECK_WARNING: [#def80]
rpm-4.19.92-build/rpm-4.19.92/lib/order.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
rpm-4.19.92-build/rpm-4.19.92/lib/package.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
rpm-4.19.92-build/rpm-4.19.92/lib/psm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def83]
rpm-4.19.92-build/rpm-4.19.92/lib/psm.c:454:13: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
#  452|       headerGet(trigH, RPMTAG_INSTPREFIXES, &pfx, HEADERGET_ALLOC|HEADERGET_ARGV);
#  453|   
#  454|->     while ((i = rpmdsNext(trigger)) >= 0) {
#  455|   	uint32_t tix;
#  456|   

Error: CPPCHECK_WARNING: [#def84]
rpm-4.19.92-build/rpm-4.19.92/lib/query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def85]
rpm-4.19.92-build/rpm-4.19.92/lib/relocation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def86]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def87]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmal.c:136:5: warning[deadcode.DeadStores]: Value stored to 'al' is never read
#  134|   
#  135|       rpmalFreeIndex(al);
#  136|->     al = _free(al);
#  137|       return NULL;
#  138|   }

Error: CLANG_WARNING: [#def88]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmal.c:465:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  463|   	}
#  464|   	/* ... then, look for files "provided" by package. */
#  465|-> 	ret = _free(ret);
#  466|       }
#  467|   

Error: CPPCHECK_WARNING: [#def89]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmchroot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def90]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def91]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmdb.c:389:5: warning[deadcode.DeadStores]: Value stored to 'db' is never read
#  387|       db->db_indexes = _free(db->db_indexes);
#  388|   
#  389|->     db = _free(db);
#  390|   
#  391|   exit:

Error: CLANG_WARNING: [#def92]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmdb.c:980:5: warning[deadcode.DeadStores]: Value stored to 'mi' is never read
#  978|       mi->mi_ts = rpmtsFree(mi->mi_ts);
#  979|   
#  980|->     mi = _free(mi);
#  981|   
#  982|       return NULL;

Error: CLANG_WARNING: [#def93]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmdb.c:1219:2: warning[deadcode.DeadStores]: Value stored to 'allpat' is never read
# 1217|       if (rc) {
# 1218|   	/* FIX: mire has kept values */
# 1219|-> 	allpat = _free(allpat);
# 1220|   	if (preg) {
# 1221|   	    regfree(preg);

Error: CLANG_WARNING: [#def94]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmdb.c:1222:6: warning[deadcode.DeadStores]: Value stored to 'preg' is never read
# 1220|   	if (preg) {
# 1221|   	    regfree(preg);
# 1222|-> 	    preg = _free(preg);
# 1223|   	}
# 1224|   	return rc;

Error: CLANG_WARNING: [#def95]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmdb.c:1935:5: warning[deadcode.DeadStores]: Value stored to 'ii' is never read
# 1933|   	ii->ii_hdrNums = _free(ii->ii_hdrNums);
# 1934|   
# 1935|->     ii = _free(ii);
# 1936|       return NULL;
# 1937|   }

Error: CPPCHECK_WARNING: [#def96]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def97]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c:245:5: warning[deadcode.DeadStores]: Value stored to 'ds' is never read
#  243|       (void) rpmdsUnlink(ds);
#  244|       memset(ds, 0, sizeof(*ds));		/* XXX trash and burn */
#  245|->     ds = _free(ds);
#  246|       return NULL;
#  247|   }

Error: CLANG_WARNING: [#def98]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c:894:5: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  892|   
#  893|       /* Binary search to find the [l,u) subset that contains N */
#  894|->     i = -1;
#  895|       l = 0;
#  896|       u = ds->Count;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c: scope_hint: In function ‘rpmrichParseInternal’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c:1403:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘depstr’
# 1401|       if (cb && cb(cbdata, RPMRICH_PARSE_ENTER, p, 0, 0, 0, 0, op, emsg) != RPMRC_OK)
# 1402|           return RPMRC_FAIL;
# 1403|->     if (*p++ != '(') {
# 1404|           if (emsg)
# 1405|             rasprintf(emsg, _("Rich dependency does not start with '('"));

Error: CLANG_WARNING: [#def100]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c:1403:9: warning[core.NullDereference]: Dereference of null pointer
# 1401|       if (cb && cb(cbdata, RPMRICH_PARSE_ENTER, p, 0, 0, 0, 0, op, emsg) != RPMRC_OK)
# 1402|           return RPMRC_FAIL;
# 1403|->     if (*p++ != '(') {
# 1404|           if (emsg)
# 1405|             rasprintf(emsg, _("Rich dependency does not start with '('"));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c: scope_hint: In function ‘rpmdsParseRichDepCB’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c:1553:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmds.c: scope_hint: In function ‘rpmdsParseRichDepCB’
# 1551|   	    sense |= RPMSENSE_RPMLIB;
# 1552|   	ds = singleDS(data->dep->pool, data->dep->tagN, 0, 0, sense | data->depflags, 0, 0, 0);
# 1553|-> 	ds->N[0] = rpmstrPoolIdn(ds->pool, n, nl, 1);
# 1554|   	ds->EVR[0] = rpmstrPoolIdn(ds->pool, e ? e : "", el, 1);
# 1555|   	if (!data->leftds)

Error: CPPCHECK_WARNING: [#def102]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def103]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:985:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  983|   	ndigest = rpmfilesFDigest(nfi, nix, &nalgo, &ndiglen);
#  984|   	/* See if the file in old pkg is identical to the one in new pkg */
#  985|-> 	if ((oalgo != nalgo) || (odiglen != ndiglen) || (!ndigest) ||
#  986|   	    (memcmp(odigest, ndigest, ndiglen) != 0)) {
#  987|   	    goto exit;

Error: CLANG_WARNING: [#def104]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1086:17: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1084|   	if (diskWhat == REG) {
# 1085|   	    /* hash algo changed or digest was not computed, recalculate it */
# 1086|-> 	    if ((oalgo != nalgo) || (newWhat != REG)) {
# 1087|   		if (rpmDoDigest(oalgo, fn, 0, (unsigned char *)buffer))
# 1088|   		    goto exit;	/* assume file has been removed */

Error: CLANG_WARNING: [#def105]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1101:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1099|   
# 1100|   	/* If file can be determined identical in old and new pkg, let it be */
# 1101|-> 	if (newWhat == REG && oalgo == nalgo && odiglen == ndiglen) {
# 1102|   	    if (odigest && ndigest && memcmp(odigest, ndigest, odiglen) == 0) {
# 1103|   		action = FA_SKIP; /* identical file, dont bother */

Error: CLANG_WARNING: [#def106]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1293:5: warning[deadcode.DeadStores]: Value stored to 'fi' is never read
# 1291|       (void) rpmfilesUnlink(fi);
# 1292|       memset(fi, 0, sizeof(*fi));		/* XXX trash and burn */
# 1293|->     fi = _free(fi);
# 1294|   
# 1295|       return NULL;

Error: CLANG_WARNING: [#def107]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1473:5: warning[deadcode.DeadStores]: Value stored to 'files' is never read
# 1471|       }
# 1472|       _free(fdevs);
# 1473|->     files = fileidHashFree(files);
# 1474|   err:
# 1475|       return;

Error: CLANG_WARNING: [#def108]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1503:3: warning[deadcode.DeadStores]: Value stored to 'offs' is never read
# 1501|   	    if (slen % 2) {
# 1502|   		bin = _free(bin);
# 1503|-> 		offs = _free(offs);
# 1504|   		goto exit;
# 1505|   	    }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c: scope_hint: In function ‘iterWriteArchiveNextFile’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:2101:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fi’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1924:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1924:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1924:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1924:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmfi.c:1924:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
# 2099|   	}
# 2100|       } else {
# 2101|-> 	fi->i = -1;
# 2102|   	/* search next non hardlinked file */
# 2103|   	for (int i=fx+1; i<fc; i++) {

Error: CLANG_WARNING: [#def110]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmgi.c:159:2: warning[deadcode.DeadStores]: Value stored to 'fn' is never read
#  157|   	    break;
#  158|   	}
#  159|-> 	fn = _free(fn);
#  160|       } while (1);
#  161|   

Error: CPPCHECK_WARNING: [#def111]
rpm-4.19.92-build/rpm-4.19.92/lib/rpminstall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def112]
rpm-4.19.92-build/rpm-4.19.92/lib/rpminstall.c:279:2: warning[deadcode.DeadStores]: Value stored to 'ps' is never read
#  277|   	    stop = 1;
#  278|   	}
#  279|-> 	ps = rpmpsFree(ps);
#  280|       }
#  281|   

Error: CLANG_WARNING: [#def113]
rpm-4.19.92-build/rpm-4.19.92/lib/rpminstall.c:306:2: warning[deadcode.DeadStores]: Value stored to 'ps' is never read
#  304|   	if (rpmpsNumProblems(ps) > 0 && (eflags || rc > 0))
#  305|   	    rpmpsPrint(NULL, ps);
#  306|-> 	ps = rpmpsFree(ps);
#  307|       }
#  308|   

Error: CLANG_WARNING: [#def114]
rpm-4.19.92-build/rpm-4.19.92/lib/rpminstall.c:496:2: warning[deadcode.DeadStores]: Value stored to 'fileURL' is never read
#  494|       /* Retrieve next set of args, cache on local storage. */
#  495|       for (i = 0; i < eiu->argc; i++) {
#  496|-> 	fileURL = _free(fileURL);
#  497|   	fileURL = eiu->argv[i];
#  498|   	eiu->argv[i] = NULL;

Error: CPPCHECK_WARNING: [#def115]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmlock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def116]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmprob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def117]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmps.c:121:5: warning[deadcode.DeadStores]: Value stored to 'ps' is never read
#  119|   	ps->probs = _free(ps->probs);
#  120|       }
#  121|->     ps = _free(ps);
#  122|       return NULL;
#  123|   }

Error: CPPCHECK_WARNING: [#def118]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def119]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:695:10: warning[deadcode.DeadStores]: Value stored to 'pe' is never read
#  693|   
#  694|       p = (char *)b;
#  695|->     for (pe = p; p && *p; p = pe) {
#  696|   	pe = strchr(p, '\n');
#  697|   	if (pe)

Error: CLANG_WARNING: [#def120]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:717:2: warning[deadcode.DeadStores]: Value stored to 'vendor' is never read
#  715|   
#  716|   	cpu = p;
#  717|-> 	vendor = "unknown";
#  718|   	os = "unknown";
#  719|   	gnu = NULL;

Error: CLANG_WARNING: [#def121]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:718:2: warning[deadcode.DeadStores]: Value stored to 'os' is never read
#  716|   	cpu = p;
#  717|   	vendor = "unknown";
#  718|-> 	os = "unknown";
#  719|   	gnu = NULL;
#  720|   	while (*p && !(*p == '-' || isspace(*p)))

Error: CLANG_WARNING: [#def122]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1533:2: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 1531|       if (ctx->currTables[ARCH] != archTable) {
# 1532|   	ctx->currTables[ARCH] = archTable;
# 1533|-> 	rebuildCompatTables(ctx, ARCH, arch);
# 1534|       }
# 1535|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def123]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c: scope_hint: In function ‘rpmSetTables’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1533:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘arch’
# 1531|       if (ctx->currTables[ARCH] != archTable) {
# 1532|   	ctx->currTables[ARCH] = archTable;
# 1533|-> 	rebuildCompatTables(ctx, ARCH, arch);
# 1534|       }
# 1535|   

Error: CLANG_WARNING: [#def124]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1538:2: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 1536|       if (ctx->currTables[OS] != osTable) {
# 1537|   	ctx->currTables[OS] = osTable;
# 1538|-> 	rebuildCompatTables(ctx, OS, os);
# 1539|       }
# 1540|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def125]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1538:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘os’
# 1536|       if (ctx->currTables[OS] != osTable) {
# 1537|   	ctx->currTables[OS] = osTable;
# 1538|-> 	rebuildCompatTables(ctx, OS, os);
# 1539|       }
# 1540|   }

Error: CLANG_WARNING: [#def126]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1561:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1559|   
# 1560|       if (arch == NULL) {
# 1561|-> 	arch = host_cpu;
# 1562|   	if (ctx->tables[ctx->currTables[ARCH]].hasTranslate)
# 1563|   	    arch = lookupInDefaultTable(arch,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def127]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c: scope_hint: In function ‘rpmSetMachine’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1561:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘host_cpu’
# 1559|   
# 1560|       if (arch == NULL) {
# 1561|-> 	arch = host_cpu;
# 1562|   	if (ctx->tables[ctx->currTables[ARCH]].hasTranslate)
# 1563|   	    arch = lookupInDefaultTable(arch,

Error: CLANG_WARNING: [#def128]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmrc.c:1889:6: warning[deadcode.DeadStores]: Value stored to 'vp' is never read
# 1887|   	    vp->value = _free(vp->value);
# 1888|   	    vp->arch = _free(vp->arch);
# 1889|-> 	    vp = _free(vp);
# 1890|   	}
# 1891|   	ctx->values[i].value = _free(ctx->values[i].value);

Error: CPPCHECK_WARNING: [#def129]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def130]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:238:6: warning[deadcode.DeadStores]: Value stored to 'xx' is never read
#  236|   	int ofdno = Fileno(out);
#  237|   	if (sfdno != STDERR_FILENO)
#  238|-> 	    xx = dup2(sfdno, STDERR_FILENO);
#  239|   	if (ofdno != STDOUT_FILENO)
#  240|   	    xx = dup2(ofdno, STDOUT_FILENO);

Error: CLANG_WARNING: [#def131]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:240:6: warning[deadcode.DeadStores]: Value stored to 'xx' is never read
#  238|   	    xx = dup2(sfdno, STDERR_FILENO);
#  239|   	if (ofdno != STDOUT_FILENO)
#  240|-> 	    xx = dup2(ofdno, STDOUT_FILENO);
#  241|   	/* make sure we don't close stdin/stderr/stdout by mistake! */
#  242|   	if (ofdno > STDERR_FILENO && ofdno != sfdno)

Error: CLANG_WARNING: [#def132]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:243:6: warning[deadcode.DeadStores]: Value stored to 'xx' is never read
#  241|   	/* make sure we don't close stdin/stderr/stdout by mistake! */
#  242|   	if (ofdno > STDERR_FILENO && ofdno != sfdno)
#  243|-> 	    xx = Fclose (out);
#  244|   	if (sfdno > STDERR_FILENO && ofdno != sfdno)
#  245|   	    xx = Fclose (scriptFd);

Error: CLANG_WARNING: [#def133]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:245:6: warning[deadcode.DeadStores]: Value stored to 'xx' is never read
#  243|   	    xx = Fclose (out);
#  244|   	if (sfdno > STDERR_FILENO && ofdno != sfdno)
#  245|-> 	    xx = Fclose (scriptFd);
#  246|       }
#  247|   

Error: CLANG_WARNING: [#def134]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:254:2: warning[deadcode.DeadStores]: Value stored to 'xx' is never read
#  252|   	    path = ipath;
#  253|   
#  254|-> 	xx = setenv("PATH", path, 1);
#  255|   	free(ipath);
#  256|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def135]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c: scope_hint: In function ‘runExtScript’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:380:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘in’ where non-null expected
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmio.h:12: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmfileutil.h:10: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:9: included_from: Included from here.
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
#  378|   	       sname, *argvp[0], (unsigned)getpid());
#  379|   
#  380|-> 	fclose(in);
#  381|   	dup2(inpipe[0], STDIN_FILENO);
#  382|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:400:24: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘in’ where non-null expected
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
#  398|   	    mline[size] = '\n';
#  399|   
#  400|-> 	    ret_size = fwrite(mline, size + 1, 1, in);
#  401|   	    mline = _free(mline);
#  402|   	    if (ret_size != 1) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def137]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:413:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘in’ where non-null expected
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
#  411|   	}
#  412|       }
#  413|->     fclose(in);
#  414|       in = NULL;
#  415|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def138]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c: scope_hint: In function ‘rpmScriptFromTriggerTag’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c:658:22: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c: scope_hint: In function ‘rpmScriptFromTriggerTag’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmscript.c: scope_hint: In function ‘rpmScriptFromTriggerTag’
#  656|   
#  657|   	/* hack up a hge-style NULL-terminated array */
#  658|-> 	script->args = (char **)xmalloc(2 * sizeof(*script->args) + strlen(prog) + 1);
#  659|   	script->args[0] = (char *)(script->args + 2);
#  660|   	script->args[1] = NULL;

Error: CLANG_WARNING: [#def139]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmtd.c:251:2: warning[deadcode.DeadStores]: Value stored to 'errmsg' is never read
#  249|       
#  250|       if (err && errmsg) {
#  251|-> 	errmsg = err;
#  252|       }
#  253|   

Error: CPPCHECK_WARNING: [#def140]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmte.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmte.c: scope_hint: In function ‘appendProblem’
rpm-4.19.92-build/rpm-4.19.92/lib/rpmte.c:712:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘te’
#  710|   {
#  711|       rpmProblem o;
#  712|->     rpmProblem p = rpmProblemCreate(type, te->NEVRA, key, altNEVR, str, number);
#  713|       rpmpsi psi = rpmpsInitIterator(te->probs);
#  714|   

Error: CPPCHECK_WARNING: [#def142]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmtriggers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def143]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def144]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmts.c:680:16: warning[core.NullDereference]: Array access (from variable 'subkeys') results in a null pointer dereference
#  678|       rpmPubkeyFree(pubkey);
#  679|       for (i = 0; i < subkeysCount; i++)
#  680|-> 	rpmPubkeyFree(subkeys[i]);
#  681|       free(subkeys);
#  682|   

Error: CLANG_WARNING: [#def145]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmts.c:868:5: warning[deadcode.DeadStores]: Value stored to 'ts' is never read
#  866|       (void) rpmtsUnlink(ts);
#  867|   
#  868|->     ts = _free(ts);
#  869|   
#  870|       return NULL;

Error: CPPCHECK_WARNING: [#def146]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def147]
rpm-4.19.92-build/rpm-4.19.92/lib/rpmvs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def148]
rpm-4.19.92-build/rpm-4.19.92/lib/signature.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def149]
rpm-4.19.92-build/rpm-4.19.92/lib/tagexts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
rpm-4.19.92-build/rpm-4.19.92/lib/tagexts.c: scope_hint: In function ‘epochnumTag’
rpm-4.19.92-build/rpm-4.19.92/lib/tagexts.c:858:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘e’
#  856|       if (!headerGet(h, RPMTAG_EPOCH, td, HEADERGET_ALLOC)) {
#  857|   	uint32_t *e = (uint32_t *)malloc(sizeof(*e));
#  858|-> 	*e = 0;
#  859|   	td->data = e;
#  860|   	td->type = RPM_INT32_TYPE;

Error: CPPCHECK_WARNING: [#def151]
rpm-4.19.92-build/rpm-4.19.92/lib/tagname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def152]
rpm-4.19.92-build/rpm-4.19.92/lib/transaction.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def153]
rpm-4.19.92-build/rpm-4.19.92/lib/transaction.c:1107:2: warning[deadcode.DeadStores]: Value stored to 'mi' is never read
# 1105|   
# 1106|       if (rpmdbGetIteratorCount(mi) == 0) {
# 1107|-> 	mi = rpmdbFreeIterator(mi);
# 1108|   	return;
# 1109|       }

Error: CLANG_WARNING: [#def154]
rpm-4.19.92-build/rpm-4.19.92/lib/transaction.c:1112:9: warning[deadcode.DeadStores]: Although the value stored to 'newheader' is used in the enclosing expression, the value is never actually read from 'newheader'
# 1110|   
# 1111|       /* Loop over all packages from the rpmdb */
# 1112|->     h = newheader = rpmdbNextIterator(mi);
# 1113|       while (h != NULL) {
# 1114|   	headerGetFlags hgflags = HEADERGET_MINMEM;

Error: CLANG_WARNING: [#def155]
rpm-4.19.92-build/rpm-4.19.92/lib/transaction.c:1199:2: warning[deadcode.DeadStores]: Value stored to 'otherFi' is never read
# 1197|   	} while (newheader==h);
# 1198|   
# 1199|-> 	otherFi = rpmfilesFree(otherFi);
# 1200|   	if (!beingRemoved) {
# 1201|   	    rpmtdFreeData(&ostates);

Error: CLANG_WARNING: [#def156]
rpm-4.19.92-build/rpm-4.19.92/lib/transaction.c:1222:13: warning[deadcode.DeadStores]: Although the value stored to 'p' is used in the enclosing expression, the value is never actually read from 'p'
# 1220|       rpmtsi pi = rpmtsiInit(ts);
# 1221|       rpmte p;
# 1222|->     while ((p = rpmtsiNext(pi, types)))
# 1223|   	npkgs++;
# 1224|       pi = rpmtsiFree(pi);

Error: CLANG_WARNING: [#def157]
rpm-4.19.92-build/rpm-4.19.92/lib/transaction.c:1224:5: warning[deadcode.DeadStores]: Value stored to 'pi' is never read
# 1222|       while ((p = rpmtsiNext(pi, types)))
# 1223|   	npkgs++;
# 1224|->     pi = rpmtsiFree(pi);
# 1225|       return npkgs;
# 1226|   }

Error: CPPCHECK_WARNING: [#def158]
rpm-4.19.92-build/rpm-4.19.92/lib/verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def159]
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def160]
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c: scope_hint: In function ‘fts_safe_changedir.part.0’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:84:25: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:1137:32: note: in expansion of macro ‘__open’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c: scope_hint: In function ‘fts_safe_changedir.part.0’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:1137:32: note: in expansion of macro ‘__open’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:1137:32: note: in expansion of macro ‘__open’
/usr/include/features.h:511: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
/usr/include/sys/param.h:25: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:15: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:76: included_from: Included from here.
/usr/include/fcntl.h:212:12: note: argument 1 of ‘open’ must be non-null
#   82|   #include "rpmfts.h"
#   83|   #   define __set_errno(val) (*__errno_location ()) = (val)
#   84|-> #   define __open	open
#   85|   #   define __close	close
#   86|   #   define __fchdir	fchdir

Error: CLANG_WARNING: [#def161]
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:227:26: warning[unix.Malloc]: Potential leak of memory pointed to by 'parent'
#  225|   	if ((sp->fts_cur = fts_alloc(sp, "", 0)) == NULL)
#  226|   		goto mem3;
#  227|-> 	sp->fts_cur->fts_link = root;
#  228|   	sp->fts_cur->fts_info = FTS_INIT;
#  229|   

Error: CLANG_WARNING: [#def162]
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:810:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  808|   			if (ISSET(FTS_NOCHDIR)) {
#  809|   				p->fts_accpath = p->fts_path;
#  810|-> 				memmove(cp, p->fts_name, p->fts_namelen + 1);
#  811|   			} else
#  812|   				p->fts_accpath = p->fts_name;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def163]
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c: scope_hint: In function ‘fts_build’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:810:33: warning[-Wanalyzer-null-argument]: use of NULL ‘cp’ where non-null expected
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:716:15: note: in expansion of macro ‘NAPPEND’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:717:13: note: in expansion of macro ‘ISSET’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:734:22: note: in expansion of macro ‘ISSET’
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:80: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:808:29: note: in expansion of macro ‘ISSET’
<built-in>: note: argument 1 of ‘__builtin_memmove’ must be non-null
#  808|   			if (ISSET(FTS_NOCHDIR)) {
#  809|   				p->fts_accpath = p->fts_path;
#  810|-> 				memmove(cp, p->fts_name, p->fts_namelen + 1);
#  811|   			} else
#  812|   				p->fts_accpath = p->fts_name;

Error: CLANG_WARNING: [#def164]
rpm-4.19.92-build/rpm-4.19.92/misc/fts.c:1137:25: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1135|   	if (ISSET(FTS_NOCHDIR))
# 1136|   		return (0);
# 1137|-> 	if (fd < 0 && (newfd = __open(path, O_RDONLY, 0)) < 0)
# 1138|   		return (-1);
# 1139|   	if (FTS_FSTAT64(newfd, &sb)) {

Error: CPPCHECK_WARNING (CWE-476): [#def165]
rpm-4.19.92-build/rpm-4.19.92/misc/rpmhash.C:106: error[ctunullpointer]: Null pointer dereference: ht
#  104|   unsigned int HASHPREFIX(KeyHash)(HASHTYPE ht, HTKEYTYPE key)
#  105|   {
#  106|->     return ht->fn(key);
#  107|   }
#  108|   

Error: CLANG_WARNING: [#def166]
rpm-4.19.92-build/rpm-4.19.92/lib/fprint.c:25: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/rpmhash.C:199:6: warning[deadcode.DeadStores]: Value stored to 'b' is never read
#  197|   	    }
#  198|   #endif
#  199|-> 	    b = _free(b);
#  200|   	} while ((b = n) != NULL);
#  201|       }

Error: CLANG_WARNING: [#def167]
rpm-4.19.92-build/rpm-4.19.92/misc/rpmhash.C:215:5: warning[deadcode.DeadStores]: Value stored to 'ht' is never read
#  213|       HASHPREFIX(Empty)(ht);
#  214|       ht->buckets = _free(ht->buckets);
#  215|->     ht = _free(ht);
#  216|   
#  217|       return NULL;

Error: CLANG_WARNING: [#def168]
rpm-4.19.92-build/rpm-4.19.92/misc/rpmhash.C:224:11: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
#  222|       Bucket b;
#  223|   
#  224|->     if (!(b = HASHPREFIX(findEntry)(ht, key, keyHash))) return 0; else return 1;
#  225|   }
#  226|   

Error: COMPILER_WARNING (CWE-252): [#def169]
rpm-4.19.92-build/rpm-4.19.92/plugins/audit.c: scope_hint: In function ‘audit_tsm_post’
rpm-4.19.92-build/rpm-4.19.92/plugins/audit.c:85:13: warning[-Wunused-result]: ignoring return value of ‘audit_log_user_comm_message’ declared with attribute ‘warn_unused_result’
#   85 |             audit_log_user_comm_message(auditFd, AUDIT_SOFTWARE_UPDATE,
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   86 |                                     eventTxt, NULL, NULL, NULL, NULL, result);
#      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   83|   		    "op=%s %s sw_type=rpm key_enforce=%u gpg_res=%u %s",
#   84|   		    op, nevra, enforce, verified, dir);
#   85|-> 	    audit_log_user_comm_message(auditFd, AUDIT_SOFTWARE_UPDATE,
#   86|   				    eventTxt, NULL, NULL, NULL, NULL, result);
#   87|   	    free(nevra);

Error: CPPCHECK_WARNING: [#def170]
rpm-4.19.92-build/rpm-4.19.92/plugins/fapolicyd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
rpm-4.19.92-build/rpm-4.19.92/plugins/fapolicyd.c: scope_hint: In function ‘open_fifo’
rpm-4.19.92-build/rpm-4.19.92/plugins/fapolicyd.c:37:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*state.fifo_path, 2049)’
#   35|       }
#   36|   
#   37|->     if (stat(state->fifo_path, &s) == -1) {
#   38|           rpmlog(RPMLOG_DEBUG, "Stat: %s -> %s\n", state->fifo_path, strerror(errno));
#   39|           goto bad;

Error: CPPCHECK_WARNING: [#def172]
rpm-4.19.92-build/rpm-4.19.92/plugins/systemd_inhibit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def173]
rpm-4.19.92-build/rpm-4.19.92/python/header-py.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def174]
rpm-4.19.92-build/rpm-4.19.92/python/rpmfd-py.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def175]
rpm-4.19.92-build/rpm-4.19.92/python/rpmfiles-py.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def176]
rpm-4.19.92-build/rpm-4.19.92/python/rpmtd-py.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def177]
rpm-4.19.92-build/rpm-4.19.92/python/rpmts-py.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def178]
rpm-4.19.92-build/rpm-4.19.92/python/rpmts-py.c:290:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  288|   	    return NULL;
#  289|   	}
#  290|-> 	rc = rpmtsSetSolveCallback(s->ts, rpmts_SolveCallback, (void *)&cbInfo);
#  291|       }
#  292|   

Error: CPPCHECK_WARNING: [#def179]
rpm-4.19.92-build/rpm-4.19.92/rpmio/argv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def180]
rpm-4.19.92-build/rpm-4.19.92/rpmio/argv.c:244:10: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  242|   	    if (seplen)
#  243|   		p = stpcpy(p, sep);
#  244|-> 	    p = stpcpy(p, argv[i]);
#  245|   	}
#  246|   	*p = '\0';

Error: CPPCHECK_WARNING: [#def181]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def182]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:28:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:28:26: note: read of 1 byte from after the end of ‘crc’
#                                           └─────────────────────────────┘
#                                                          ^
#   26|   			return codechar;
#   27|   		}
#   28|-> 		fragment = *plainchar++;
#   29|   		result = (fragment & 0x0fc) >> 2;
#   30|   		*codechar++ = base64_encode_value(result);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def183]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:34:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:34:37: note: write of 1 byte to beyond the end of the region
#   32|   		if (plainchar == plaintextend)
#   33|   		{
#   34|-> 			*codechar++ = base64_encode_value(result);
#   35|   			*codechar++ = '=';
#   36|   			*codechar++ = '=';

Error: GCC_ANALYZER_WARNING (CWE-122): [#def184]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:35:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:35:37: note: write of 1 byte to beyond the end of the region
#   33|   		{
#   34|   			*codechar++ = base64_encode_value(result);
#   35|-> 			*codechar++ = '=';
#   36|   			*codechar++ = '=';
#   37|   			return codechar;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def185]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:36:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:36:37: note: write of 1 byte to beyond the end of the region
#   34|   			*codechar++ = base64_encode_value(result);
#   35|   			*codechar++ = '=';
#   36|-> 			*codechar++ = '=';
#   37|   			return codechar;
#   38|   		}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def186]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:39:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:39:26: note: read of 1 byte from after the end of ‘crc’
#                                           └─────────────────────────────┘
#                                                          ^
#   37|   			return codechar;
#   38|   		}
#   39|-> 		fragment = *plainchar++;
#   40|   		result |= (fragment & 0x0f0) >> 4;
#   41|   		*codechar++ = base64_encode_value(result);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def187]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:41:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:41:29: note: write of 1 byte to beyond the end of the region
#   39|   		fragment = *plainchar++;
#   40|   		result |= (fragment & 0x0f0) >> 4;
#   41|-> 		*codechar++ = base64_encode_value(result);
#   42|   		result = (fragment & 0x00f) << 2;
#   43|   		if (plainchar == plaintextend)

Error: GCC_ANALYZER_WARNING (CWE-122): [#def188]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:45:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:45:37: note: write of 1 byte to beyond the end of the region
#   43|   		if (plainchar == plaintextend)
#   44|   		{
#   45|-> 			*codechar++ = base64_encode_value(result);
#   46|   			*codechar++ = '=';
#   47|   			return codechar;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def189]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:46:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:46:37: note: write of 1 byte to beyond the end of the region
#   44|   		{
#   45|   			*codechar++ = base64_encode_value(result);
#   46|-> 			*codechar++ = '=';
#   47|   			return codechar;
#   48|   		}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def190]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:49:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:49:26: note: read of 1 byte from after the end of ‘crc’
#                                           └─────────────────────────────┘
#                                                          ^
#   47|   			return codechar;
#   48|   		}
#   49|-> 		fragment = *plainchar++;
#   50|   		result |= (fragment & 0x0c0) >> 6;
#   51|   		*codechar++ = base64_encode_value(result);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def191]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:51:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:51:29: note: write of 1 byte to beyond the end of the region
#   49|   		fragment = *plainchar++;
#   50|   		result |= (fragment & 0x0c0) >> 6;
#   51|-> 		*codechar++ = base64_encode_value(result);
#   52|   		result  = (fragment & 0x03f) >> 0;
#   53|   		*codechar++ = base64_encode_value(result);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def192]
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:53:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.92-build/rpm-4.19.92/rpmio/base64.c:53:29: note: write of 1 byte to beyond the end of the region
#   51|   		*codechar++ = base64_encode_value(result);
#   52|   		result  = (fragment & 0x03f) >> 0;
#   53|-> 		*codechar++ = base64_encode_value(result);
#   54|   	}
#   55|   	/* control should not reach here */

Error: CPPCHECK_WARNING: [#def193]
rpm-4.19.92-build/rpm-4.19.92/rpmio/expression.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def194]
rpm-4.19.92-build/rpm-4.19.92/rpmio/lposix.c:403:23: warning[unix.Malloc]: Potential leak of memory pointed to by 'e'
#  401|   	const char *s=luaL_checklstring(L, 1, &l);
#  402|   	char *e=(char *)malloc(++l);
#  403|-> 	return pushresult(L, (e==NULL) ? -1 : putenv((char *)memcpy(e,s,l)), s);
#  404|   #else
#  405|   	return -1;

Error: CLANG_WARNING: [#def195]
rpm-4.19.92-build/rpm-4.19.92/rpmio/lposix.c:786:20: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  784|   static int Fsysconf(lua_State *L, int i, const void *data)
#  785|   {
#  786|-> 	lua_pushnumber(L, sysconf(Ksysconf[i]));
#  787|   	return 1;
#  788|   }

Error: CPPCHECK_WARNING: [#def196]
rpm-4.19.92-build/rpm-4.19.92/rpmio/macro.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-685): [#def197]
rpm-4.19.92-build/rpm-4.19.92/rpmio/macro.c: scope_hint: In function ‘rpmExpand’
rpm-4.19.92-build/rpm-4.19.92/rpmio/macro.c:2254:42: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (2 consumed)
# 2252|   
# 2253|       va_start(ap, arg);
# 2254|->     for (pe = buf, s = arg; s != NULL; s = va_arg(ap, const char *))
# 2255|   	pe = stpcpy(pe, s);
# 2256|       va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-685): [#def198]
rpm-4.19.92-build/rpm-4.19.92/rpmio/macro.c:2254:42: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (3 consumed)
# 2252|   
# 2253|       va_start(ap, arg);
# 2254|->     for (pe = buf, s = arg; s != NULL; s = va_arg(ap, const char *))
# 2255|   	pe = stpcpy(pe, s);
# 2256|       va_end(ap);

Error: CPPCHECK_WARNING: [#def199]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmfileutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def200]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmglob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def201]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-416): [#def202]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:68:35: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1402:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1402:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1402:44: note: in expansion of macro ‘FDIOVEC’
#   66|   static FDSTACK_t fdGetFps(FD_t fd)
#   67|   {
#   68|->     return (fd != NULL) ? fd->fps : NULL;
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def203]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdPop’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:91:15: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdPop’
#   89|   static FDSTACK_t fdPop(FD_t fd)
#   90|   {
#   91|->     FDSTACK_t fps = fd->fps;
#   92|       fd->fps = fps->prev;
#   93|       free(fps);

Error: CLANG_WARNING: [#def204]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:92:15: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'fps')
#   90|   {
#   91|       FDSTACK_t fps = fd->fps;
#   92|->     fd->fps = fps->prev;
#   93|       free(fps);
#   94|       fps = fd->fps;

Error: CLANG_WARNING: [#def205]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:96:5: warning[unix.Malloc]: Use of memory after it is freed
#   94|       fps = fd->fps;
#   95|       fdFree(fd);
#   96|->     return fps;
#   97|   }
#   98|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def206]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:197:11: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1402:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1402:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1402:44: note: in expansion of macro ‘FDIOVEC’
#  195|   	fps->syserrno = errno;
#  196|       }
#  197|->     if (fd->stats != NULL)
#  198|   	(void) rpmswExit(fdOp(fd, opx), rc);
#  199|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def207]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdstat_print’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:206:25: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdstat_print’
#  204|       int opx;
#  205|   
#  206|->     if (fd == NULL || fd->stats == NULL) return;
#  207|       for (opx = 0; opx < 4; opx++) {
#  208|   	rpmop op = &fd->stats->ops[opx];

Error: GCC_ANALYZER_WARNING (CWE-416): [#def208]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdFree’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:323:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘fdFree’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:64:25: note: in expansion of macro ‘DBG’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1418:5: note: in expansion of macro ‘DBGIO’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:64:25: note: in expansion of macro ‘DBG’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1418:5: note: in expansion of macro ‘DBGIO’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:5: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:64:28: note: in definition of macro ‘_free’
#  321|   {
#  322|       if (fd) {
#  323|-> 	if (--fd->nrefs > 0)
#  324|   	    return fd;
#  325|   	fd->stats = _free(fd->stats);

Error: CLANG_WARNING: [#def209]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1422:5: warning[unix.Malloc]: Use of memory after it is freed
# 1420|       fdPop(fd);
# 1421|   
# 1422|->     fdFree(fd);
# 1423|       return ec;
# 1424|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def210]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c: scope_hint: In function ‘Ferror’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1645:14: warning[-Wanalyzer-jump-through-null]: jump through null pointer
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1644:42: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio.c:1644:42: note: in expansion of macro ‘FDIOVEC’
# 1643|       for (FDSTACK_t fps = fd->fps; fps != NULL; fps = fps->prev) {
# 1644|   	fdio_ferror_function_t _ferror = FDIOVEC(fps, _ferror);
# 1645|-> 	rc = _ferror(fps);
# 1646|   
# 1647|   	if (rc)

Error: CPPCHECK_WARNING: [#def211]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def212]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlog.c:408:5: warning[deadcode.DeadStores]: Value stored to 'ctx' is never read
#  406|   
#  407|       /* Free the context for callback and actual log output */
#  408|->     ctx = rpmlogCtxRelease(ctx);
#  409|   
#  410|       /* Always serialize callback and output to avoid interleaved messages. */

Error: CPPCHECK_WARNING: [#def213]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def214]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:78:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpm_redirect2null.part.0’
#   76|   static int pushresult(lua_State *L, int result)
#   77|   {
#   78|->     lua_pushnumber(L, result);
#   79|       return 1;
#   80|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaGetLua’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:178:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:177:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:177:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:177:5: note: in expansion of macro ‘INITSTATE’
/usr/include/strings.h:23: included_from: Included from here.
/usr/include/string.h:462: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/include/rpm/rpmpgp.h:17: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmio_internal.h:9: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:27: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:177:5: note: in expansion of macro ‘INITSTATE’
#  176|   {
#  177|       INITSTATE(lua);
#  178|->     return lua->L;
#  179|   }
#  180|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaPushPrintBuffer’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:188:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:183:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:183:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:183:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:183:5: note: in expansion of macro ‘INITSTATE’
#  186|       prbuf->alloced = 0;
#  187|       prbuf->used = 0;
#  188|->     prbuf->next = lua->printbuf;
#  189|   
#  190|       lua->printbuf = prbuf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaPopPrintBuffer’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:196:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:195:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:195:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:195:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:195:5: note: in expansion of macro ‘INITSTATE’
#  194|   {
#  195|       INITSTATE(lua);
#  196|->     rpmluapb prbuf = lua->printbuf;
#  197|       char *ret = NULL;
#  198|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaCheckScript’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:211:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:210:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:210:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:210:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:210:5: note: in expansion of macro ‘INITSTATE’
#  209|   {
#  210|       INITSTATE(lua);
#  211|->     lua_State *L = lua->L;
#  212|       int ret = 0;
#  213|       if (name == NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaRunScript’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:254:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:253:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:253:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:253:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:253:5: note: in expansion of macro ‘INITSTATE’
#  252|   {
#  253|       INITSTATE(lua);
#  254|->     lua_State *L = lua->L;
#  255|       int ret = -1;
#  256|       int oind = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaRunScriptFile’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:327:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:326:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:326:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:326:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:326:5: note: in expansion of macro ‘INITSTATE’
#  325|   {
#  326|       INITSTATE(lua);
#  327|->     lua_State *L = lua->L;
#  328|       int ret = 0;
#  329|       if (luaL_loadfile(L, filename) != 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaInteractive’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:420:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:419:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:419:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:419:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:419:5: note: in expansion of macro ‘INITSTATE’
#  418|   {
#  419|       INITSTATE(lua);
#  420|->     _rpmluaInteractive(lua->L, rl);
#  421|   }
#  422|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaCallStringFunction’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:426:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:425:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:425:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:425:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmlua.c:425:5: note: in expansion of macro ‘INITSTATE’
#  424|   {
#  425|       INITSTATE(lua);
#  426|->     lua_State *L = lua->L;
#  427|       int i;
#  428|       char *fcall = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rstrlenhash’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c:69:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rstrlenhash’
#   67|       const char * s = str;
#   68|   
#   69|->     while (*s != '\0') {
#   70|         hash += *s;
#   71|         hash += (hash << 10);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def224]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘poolHashAddHEntry’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c:170:21: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘poolHashAddHEntry’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  168|               ht->keyCount++;
#  169|               break;
#  170|->         } else if (!strcmp(id2str(pool, ht->buckets[hash].keyid), key)) {
#  171|               return;
#  172|           }

Error: CLANG_WARNING: [#def225]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c:199:5: warning[deadcode.DeadStores]: Value stored to 'ht' is never read
#  197|       poolHashEmpty(ht);
#  198|       ht->buckets = _free(ht->buckets);
#  199|->     ht = _free(ht);
#  200|   
#  201|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def226]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolGet’
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c:388:13: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolGet’
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
#  386|   	s = id2str(pool, ht->buckets[hash].keyid);
#  387|   	/* pool string could be longer than keylen, require exact matche */
#  388|-> 	if (strncmp(s, key, keylen) == 0 && s[keylen] == '\0')
#  389|   	    return ht->buckets[hash].keyid;
#  390|       }

Error: CPPCHECK_WARNING: [#def227]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def228]
rpm-4.19.92-build/rpm-4.19.92/rpmio/rpmvercmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def229]
rpm-4.19.92-build/rpm-4.19.92/rpmio/url.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def230]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c:232:6: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  230|   	rc = poptParseArgvString(cmd, NULL, (const char ***)&av);
#  231|   	if (!rc)
#  232|-> 	    rc = execve(av[0], av+1, environ);
#  233|   
#  234|   	rpmlog(RPMLOG_ERR, _("Could not exec %s: %s\n"), "gpg",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def231]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c: scope_hint: In function ‘runGPG’
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c:276:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipefd[1]’
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:87: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c:6: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c:206:28: note: in expansion of macro ‘_’
#  274|       if (fpipe)
#  275|   	fclose(fpipe);
#  276|->     if (pipefd[1])
#  277|   	close(pipefd[1]);
#  278|   

Error: CLANG_WARNING: [#def232]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c:578:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  576|   
#  577|       /* Ensure package is intact before attempting to sign */
#  578|->     if ((rc = checkPkg(fd, &msg))) {
#  579|   	rpmlog(RPMLOG_ERR, "not signing corrupt package %s: %s\n", rpm, msg);
#  580|   	goto exit;

Error: CLANG_WARNING: [#def233]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmgensig.c:583:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  581|       }
#  582|   
#  583|->     if ((rc = rpmLeadRead(fd, &msg)) != RPMRC_OK) {
#  584|   	rpmlog(RPMLOG_ERR, "%s: %s\n", rpm, msg);
#  585|   	goto exit;

Error: CPPCHECK_WARNING: [#def234]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmsignverity.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def235]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmsignverity.c:194:2: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  192|   	}
#  193|   	rpmlog(RPMLOG_DEBUG, _("signature: %s\n"), signatures[idx]);
#  194|-> 	rpmlog(RPMLOG_DEBUG, _("digest signed, len: %zu\n"), sig_size);
#  195|   	free(signatures[idx]);
#  196|   	signatures[idx] = NULL;

Error: CLANG_WARNING: [#def236]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmsignverity.c:199:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  197|       }
#  198|   
#  199|->     if (sig_size == 0) {
#  200|   	rpmlog(RPMLOG_ERR, _("Zero length fsverity signature\n"));
#  201|   	rc = RPMRC_FAIL;

Error: CLANG_WARNING: [#def237]
rpm-4.19.92-build/rpm-4.19.92/sign/rpmsignverity.c:220:5: warning[deadcode.DeadStores]: Value stored to 'signatures' is never read
#  218|       rc = RPMRC_OK;
#  219|    out:
#  220|->     signatures = _free(signatures);
#  221|       Fseek(fd, offset, SEEK_SET);
#  222|   

Error: CPPCHECK_WARNING: [#def238]
rpm-4.19.92-build/rpm-4.19.92/tools/elfdeps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def239]
rpm-4.19.92-build/rpm-4.19.92/tools/rpm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def240]
rpm-4.19.92-build/rpm-4.19.92/tools/rpm2archive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def241]
rpm-4.19.92-build/rpm-4.19.92/tools/rpm2archive.c:278:5: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
#  276|       }
#  277|       archive_write_free(a);
#  278|->     buf = _free(buf);
#  279|       rpmfilesFree(files);
#  280|       rpmfiFree(fi);

Error: CPPCHECK_WARNING: [#def242]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmbuild.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def243]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmbuild.c: scope_hint: In function ‘buildForTarget’
rpm-4.19.92-build/rpm-4.19.92/tools/rpmbuild.c:539:16: warning[-Wanalyzer-null-argument]: use of NULL ‘specFile’ where non-null expected
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/misc/system.h:15: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/tools/rpmbuild.c:1: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of ‘unlink’ must be non-null
#  537|   exit:
#  538|       if (buildMode == 't')
#  539|-> 	(void) unlink(specFile);
#  540|       free(specFile);
#  541|       rpmSpecFree(spec);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def244]
/usr/include/arpa/inet.h:22: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/tools/rpmdump.c:9: included_from: Included from here.
rpm-4.19.92-build/rpm-4.19.92/tools/rpmdump.c: scope_hint: In function ‘dumptag’
rpm-4.19.92-build/rpm-4.19.92/tools/rpmdump.c:103:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*entry.offset’
#  101|       printf("%stype:   %4d (%s)\n", pfx, htonl(entry->type),
#  102|   		tagTypeNames[htonl(entry->type)]);
#  103|->     printf("%soffset: %4d\n", pfx, htonl(entry->offset));
#  104|       printf("%scount:  %4d\n", pfx, htonl(entry->count));
#  105|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmdump.c: scope_hint: In function ‘readhdr’
rpm-4.19.92-build/rpm-4.19.92/tools/rpmdump.c:132:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blob’
#  130|   
#  131|       blob = (uint32_t *)malloc(sizeof(numEntries) + sizeof(numBytes) + headerLen);
#  132|->     blob[0] = htonl(numEntries);
#  133|       blob[1] = htonl(numBytes);
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def246]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmdump.c:169:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(struct entryInfo *)((char *)blob + 8).offset’
#  167|       if (tag == 62 || tag == 63) {
#  168|   	/* The trailer isn't guaranteed to be aligned, copy required */
#  169|-> 	memcpy(trailer, dataStart + htonl(entry->offset), sizeof(*trailer));
#  170|   	toffset = -htonl(trailer->offset);
#  171|   	regionEnd = dataStart + toffset + 16;

Error: CPPCHECK_WARNING: [#def247]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmgraph.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def248]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmgraph.c:73:2: warning[deadcode.DeadStores]: Value stored to 'fileURL' is never read
#   71|       /* Copy next set of args. */
#   72|       for (i = 0; i < argc; i++) {
#   73|-> 	fileURL = _free(fileURL);
#   74|   	fileURL = argv[i];
#   75|   	argv[i] = NULL;

Error: CLANG_WARNING: [#def249]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmgraph.c:164:6: warning[deadcode.DeadStores]: Value stored to 'numFailed' is never read
#  162|   	rc = rpmtsCheck(ts);
#  163|   	if (rc) {
#  164|-> 	    numFailed += numPkgs;
#  165|   	    goto exit;
#  166|   	}

Error: CLANG_WARNING: [#def250]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmgraph.c:171:6: warning[deadcode.DeadStores]: Value stored to 'numFailed' is never read
#  169|   	    rpmlog(RPMLOG_ERR, _("Failed dependencies:\n"));
#  170|   	    rpmpsPrint(NULL, ps);
#  171|-> 	    numFailed += numPkgs;
#  172|   	}
#  173|   	rpmpsFree(ps);

Error: CLANG_WARNING: [#def251]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmgraph.c:210:5: warning[deadcode.DeadStores]: Value stored to 'pkgState' is never read
#  208|       for (i = 0; i < numPkgs; i++)
#  209|           pkgURL[i] = _free(pkgURL[i]);
#  210|->     pkgState = _free(pkgState);
#  211|       pkgURL = _free(pkgURL);
#  212|       argv = _free(argv);

Error: CLANG_WARNING: [#def252]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmgraph.c:211:5: warning[deadcode.DeadStores]: Value stored to 'pkgURL' is never read
#  209|           pkgURL[i] = _free(pkgURL[i]);
#  210|       pkgState = _free(pkgState);
#  211|->     pkgURL = _free(pkgURL);
#  212|       argv = _free(argv);
#  213|   

Error: CPPCHECK_WARNING: [#def253]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmsort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def254]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmsort.c: scope_hint: In function ‘read_file’
rpm-4.19.92-build/rpm-4.19.92/tools/rpmsort.c:45:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
#   43|   	fclose(in);
#   44|   
#   45|->     return offset + 1;
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmsort.c:45:19: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
#   43|   	fclose(in);
#   44|   
#   45|->     return offset + 1;
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-465): [#def256]
rpm-4.19.92-build/rpm-4.19.92/tools/rpmsort.c: scope_hint: In function ‘split_package_string’
rpm-4.19.92-build/rpm-4.19.92/tools/rpmsort.c:74:8: warning[-Wanalyzer-deref-before-check]: check of ‘package_string’ for NULL after already dereferencing it
#   72|   
#   73|       /* Bubble up non-null values from release to name */
#   74|->     if (*name == NULL) {
#   75|   	*name = (*version == NULL ? *release : *version);
#   76|   	*version = *release;

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-23.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namerpm-4.19.92-1.fc41
store-results-to/tmp/tmpcybal5t7/rpm-4.19.92-1.fc41.tar.xz
time-created2024-07-03 17:53:54
time-finished2024-07-03 17:56:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcybal5t7/rpm-4.19.92-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcybal5t7/rpm-4.19.92-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9