rpm-4.19.1.1-1.fc40

List of Defects

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

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

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

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

Error: CLANG_WARNING: [#def5]
rpm-4.19.1.1-build/rpm-4.19.1.1/build/files.c:2584: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
# 2582|   	    fl->haveCaps = 1;
# 2583|       }
# 2584|->     argvFree(fileNames);
# 2585|   }
# 2586|   

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

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

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

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

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

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

Error: CLANG_WARNING: [#def12]
rpm-4.19.1.1-build/rpm-4.19.1.1/build/parseSpec.c:1049:14: warning[deadcode.DeadStores]: Although the value stored to 'spec' is used in the enclosing expression, the value is never actually read from 'spec'
# 1047|   		spec->BASpecs = _free(spec->BASpecs);
# 1048|   		rpmSpecFree(spec);
# 1049|-> 		*specptr = spec = nspec;
# 1050|   	    }
# 1051|   

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

Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmfc.c:291:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromProg[0]’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmfc.c:1577: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.1.1-build/rpm-4.19.1.1/misc/system.h:15: included_from: Included from here.
#  289|       if (doio && (pipe(toProg) < 0 || pipe(fromProg) < 0)) {
#  290|   	rpmlog(RPMLOG_ERR, _("Couldn't create pipe for %s: %m\n"), argv[0]);
#  291|-> 	return -1;
#  292|       }
#  293|       

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

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

Error: GCC_ANALYZER_WARNING: [#def17]
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmfc.c:310:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘-1’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmfc.c:1577:13: note: in expansion of macro ‘_’
#  308|   	close(fromProg[0]);
#  309|   	
#  310|-> 	dup2(toProg[0], STDIN_FILENO);   /* Make stdin the in pipe */
#  311|   	close(toProg[0]);
#  312|   

Error: GCC_ANALYZER_WARNING: [#def18]
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmfc.c:313:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘-1’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/system.h:60:41: note: in definition of macro ‘xcalloc’
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmfc.c:1577:13: note: in expansion of macro ‘_’
#  311|   	close(toProg[0]);
#  312|   
#  313|-> 	dup2(fromProg[1], STDOUT_FILENO); /* Make stdout the out pipe */
#  314|   	close(fromProg[1]);
#  315|   

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

Error: CPPCHECK_WARNING (CWE-758): [#def20]
rpm-4.19.1.1-build/rpm-4.19.1.1/include/rpm/rpmbuild.h:42: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   40|       RPMBUILD_CONF	= (1 << 22),	/*!< Execute %%conf. */
#   41|   
#   42|->     RPMBUILD_NOBUILD	= (1 << 31)	/*!< Don't execute or package. */
#   43|   };
#   44|   

Error: CPPCHECK_WARNING (CWE-758): [#def21]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def22]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: GCC_ANALYZER_WARNING (CWE-688): [#def23]
rpm-4.19.1.1-build/rpm-4.19.1.1/include/rpm/rpmstring.h:117:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolStreq’
rpm-4.19.1.1-build/rpm-4.19.1.1/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 2 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: [#def24]
rpm-4.19.1.1-build/rpm-4.19.1.1/build/parseFiles.c:10: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/build/rpmbuild_internal.h:4: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/include/rpm/rpmbuild.h:10: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/include/rpm/rpmspec.h:9: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def25]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def26]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/bdb_ro.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

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

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

Error: CLANG_WARNING: [#def32]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/ndb/rpmxdb.c:87:24: warning[core.NullDereference]: Dereference of null pointer
#   85|   static inline void h2lea(unsigned int x, unsigned char *p)
#   86|   {
#   87|->     *(unsigned int *)p = htole32(x);
#   88|   }
#   89|   

Error: CLANG_WARNING: [#def33]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/ndb/rpmxdb.c:723:5: warning[deadcode.DeadStores]: Value stored to 'freecnt' is never read
#  721|   
#  722|       nslots = xdb->nslots;
#  723|->     freecnt = 0;
#  724|       lastslot = xdb->slots;
#  725|       for (i = xdb->slots[0].next; ; lastslot = slot, i = slot->next) {

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

Error: CLANG_WARNING: [#def35]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def36]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def37]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c: scope_hint: In function ‘sqlite_pkgdbPut’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c:454:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hdrNum’
#  452|   
#  453|       if (!rc)
#  454|-> 	rc = dbiCursorBindPkg(dbc, *hdrNum, hdrBlob, hdrLen);
#  455|   
#  456|       if (!rc)

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

Error: CLANG_WARNING: [#def39]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c:460:30: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'hdrNum')
#  458|   
#  459|       /* XXX rowid is a 64bit integer and could overflow hdrnum */
#  460|->     if (rc == SQLITE_DONE && *hdrNum == 0)
#  461|   	*hdrNum = sqlite3_last_insert_rowid(dbc->sdb);
#  462|   

Error: CLANG_WARNING: [#def40]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c:480:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  478|   
#  479|       if (!rc)
#  480|-> 	while ((rc = sqlite3_step(dbc->stmt)) == SQLITE_ROW) {};
#  481|   
#  482|       return dbiCursorResult(dbc);

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

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

Error: CLANG_WARNING: [#def43]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c:581:7: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'set')
#  579|   
#  580|       if (rc == SQLITE_DONE) {
#  581|-> 	rc = (*set) ? RPMRC_OK : RPMRC_NOTFOUND;
#  582|       } else {
#  583|   	rc = dbiCursorResult(dbc);

Error: CLANG_WARNING: [#def44]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c:646:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  644|   
#  645|       if (!rc)
#  646|-> 	while ((rc = sqlite3_step(dbc->stmt)) == SQLITE_ROW) {};
#  647|   
#  648|       return dbiCursorResult(dbc);

Error: CLANG_WARNING: [#def45]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/backend/sqlite.c:665:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  663|   
#  664|       if (!rc)
#  665|-> 	while ((rc = sqlite3_step(dbc->stmt)) == SQLITE_ROW) {};
#  666|   
#  667|       rc = dbiCursorResult(dbc);

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

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

Error: CLANG_WARNING: [#def48]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def49]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def50]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/depends.c:855: warning[nullPointer]: Possible null pointer dereference: dep
#  853|   	dep = rpmdsN(depds);
#  854|       if (neg) {
#  855|-> 	ndep = rmalloc(strlen(dep) + 2);
#  856|   	ndep[0] = '!';
#  857|   	strcpy(ndep + 1, dep);

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

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

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

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

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

Error: COMPILER_WARNING (CWE-252): [#def56]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/fsm.c: scope_hint: In function ‘removeSBITS’
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def57]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def58]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def59]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def60]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def61]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/header.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def62]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def63]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def64]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def65]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def66]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def67]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/header.c:894: error[uninitvar]: Uninitialized variables: &key.data, &key.length, &key.rdlen
#  892|       key.info.tag = tag;
#  893|   
#  894|->     entry = bsearch(&key, h->index, h->indexUsed, sizeof(*h->index), indexCmp);
#  895|       if (entry == NULL)
#  896|   	return NULL;

Error: CLANG_WARNING: [#def68]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def69]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def70]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def71]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def72]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/headerfmt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def73]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/headerfmt.c:184:15: warning[core.NullDereference]: Access to field 'tag' results in a dereference of a null pointer (loaded from variable 'tag')
#  182|   	    hsa->i++;
#  183|   	} else {
#  184|-> 	    tag->tag = headerNextTag(hsa->hi);
#  185|   	    if (tag->tag == RPMTAG_NOT_FOUND)
#  186|   		fmt = NULL;

Error: CLANG_WARNING: [#def74]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/headerfmt.c:709:2: warning[deadcode.DeadStores]: Value stored to 't' is never read
#  707|   
#  708|       case PTOK_TAG:
#  709|-> 	t = hsa->val + hsa->vallen;
#  710|   	te = formatValue(hsa, &token->u.tag,
#  711|   			(token->u.tag.justOne ? 0 : element));

Error: CLANG_WARNING: [#def75]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/headerfmt.c:729:2: warning[deadcode.DeadStores]: Value stored to 't' is never read
#  727|   	if (spft == NULL || need == 0) break;
#  728|   
#  729|-> 	t = hsaReserve(hsa, need);
#  730|   	for (i = 0; i < condNumFormats; i++, spft++) {
#  731|   	    te = singleSprintf(hsa, spft, element);

Error: CLANG_WARNING: [#def76]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/headerfmt.c:795:6: warning[deadcode.DeadStores]: Value stored to 't' is never read
#  793|   	    }
#  794|   
#  795|-> 	    t = hsaReserve(hsa, need);
#  796|   	    for (j = 0; j < numElements; j++) {
#  797|   		spft = token->u.array.format;

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

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

Error: CLANG_WARNING: [#def79]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/headerutil.c:268:2: warning[deadcode.DeadStores]: Value stored to 'needle' is never read
#  266|   	}
#  267|   	len = baseName - filename;
#  268|-> 	needle = dirNames;
#  269|   	savechar = *baseName;
#  270|   	*baseName = '\0';

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

Error: CLANG_WARNING: [#def81]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def82]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/order.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CLANG_WARNING: [#def85]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/psm.c:460:13: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
#  458|       headerGet(trigH, RPMTAG_INSTPREFIXES, &pfx, HEADERGET_ALLOC|HEADERGET_ARGV);
#  459|   
#  460|->     while ((i = rpmdsNext(trigger)) >= 0) {
#  461|   	uint32_t tix;
#  462|   

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

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

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

Error: CLANG_WARNING: [#def89]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def90]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def91]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmchroot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CLANG_WARNING: [#def93]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def94]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def95]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmdb.c:1239:2: warning[deadcode.DeadStores]: Value stored to 'allpat' is never read
# 1237|       if (rc) {
# 1238|   	/* FIX: mire has kept values */
# 1239|-> 	allpat = _free(allpat);
# 1240|   	if (preg) {
# 1241|   	    regfree(preg);

Error: CLANG_WARNING: [#def96]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmdb.c:1242:6: warning[deadcode.DeadStores]: Value stored to 'preg' is never read
# 1240|   	if (preg) {
# 1241|   	    regfree(preg);
# 1242|-> 	    preg = _free(preg);
# 1243|   	}
# 1244|   	return rc;

Error: CLANG_WARNING: [#def97]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmdb.c:1955:5: warning[deadcode.DeadStores]: Value stored to 'ii' is never read
# 1953|   	ii->ii_hdrNums = _free(ii->ii_hdrNums);
# 1954|   
# 1955|->     ii = _free(ii);
# 1956|       return NULL;
# 1957|   }

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

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

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

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

Error: CLANG_WARNING: [#def102]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmds.c:1376:9: warning[core.NullDereference]: Dereference of null pointer
# 1374|       if (cb && cb(cbdata, RPMRICH_PARSE_ENTER, p, 0, 0, 0, 0, op, emsg) != RPMRC_OK)
# 1375|           return RPMRC_FAIL;
# 1376|->     if (*p++ != '(') {
# 1377|           if (emsg)
# 1378|             rasprintf(emsg, _("Rich dependency does not start with '('"));

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

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

Error: CLANG_WARNING: [#def105]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:329:2: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  327|       if (fi != NULL && fx >= 0 && fx < rpmfilesFC(fi->files)) {
#  328|   	int dx = fi->j;
#  329|-> 	i = fi->i;
#  330|   	fi->i = fx;
#  331|   	fi->j = rpmfilesDI(fi->files, fi->i);

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

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

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

Error: CLANG_WARNING: [#def109]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1297:5: warning[deadcode.DeadStores]: Value stored to 'fi' is never read
# 1295|       (void) rpmfilesUnlink(fi);
# 1296|       memset(fi, 0, sizeof(*fi));		/* XXX trash and burn */
# 1297|->     fi = _free(fi);
# 1298|   
# 1299|       return NULL;

Error: CLANG_WARNING: [#def110]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1477:5: warning[deadcode.DeadStores]: Value stored to 'files' is never read
# 1475|       }
# 1476|       _free(fdevs);
# 1477|->     files = fileidHashFree(files);
# 1478|   err:
# 1479|       return;

Error: CLANG_WARNING: [#def111]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1507:3: warning[deadcode.DeadStores]: Value stored to 'offs' is never read
# 1505|   	    if (slen % 2) {
# 1506|   		bin = rfree(bin);
# 1507|-> 		offs = rfree(offs);
# 1508|   		goto exit;
# 1509|   	    }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c: scope_hint: In function ‘iterWriteArchiveNextFile’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:2120:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fi’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1943:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1943:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1943:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1943:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmfi.c:1943:1: note: in expansion of macro ‘RPMFI_ITERFUNC’
# 2118|   	}
# 2119|       } else {
# 2120|-> 	fi->i = -1;
# 2121|   	/* search next non hardlinked file */
# 2122|   	for (int i=fx+1; i<fc; i++) {

Error: CLANG_WARNING: [#def113]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def114]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpminstall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def115]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def116]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def117]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def118]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmlock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def119]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/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: CPPCHECK_WARNING: [#def120]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmprob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def121]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def122]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def123]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:668:10: warning[deadcode.DeadStores]: Value stored to 'pe' is never read
#  666|   
#  667|       p = (char *)b;
#  668|->     for (pe = p; p && *p; p = pe) {
#  669|   	pe = strchr(p, '\n');
#  670|   	if (pe)

Error: CLANG_WARNING: [#def124]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:690:2: warning[deadcode.DeadStores]: Value stored to 'vendor' is never read
#  688|   
#  689|   	cpu = p;
#  690|-> 	vendor = "unknown";
#  691|   	os = "unknown";
#  692|   	gnu = NULL;

Error: CLANG_WARNING: [#def125]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:691:2: warning[deadcode.DeadStores]: Value stored to 'os' is never read
#  689|   	cpu = p;
#  690|   	vendor = "unknown";
#  691|-> 	os = "unknown";
#  692|   	gnu = NULL;
#  693|   	while (*p && !(*p == '-' || isspace(*p)))

Error: CLANG_WARNING: [#def126]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1506:2: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 1504|       if (ctx->currTables[ARCH] != archTable) {
# 1505|   	ctx->currTables[ARCH] = archTable;
# 1506|-> 	rebuildCompatTables(ctx, ARCH, arch);
# 1507|       }
# 1508|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def127]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c: scope_hint: In function ‘rpmSetTables’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1506:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘arch’
# 1504|       if (ctx->currTables[ARCH] != archTable) {
# 1505|   	ctx->currTables[ARCH] = archTable;
# 1506|-> 	rebuildCompatTables(ctx, ARCH, arch);
# 1507|       }
# 1508|   

Error: CLANG_WARNING: [#def128]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1511:2: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 1509|       if (ctx->currTables[OS] != osTable) {
# 1510|   	ctx->currTables[OS] = osTable;
# 1511|-> 	rebuildCompatTables(ctx, OS, os);
# 1512|       }
# 1513|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def129]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1511:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘os’
# 1509|       if (ctx->currTables[OS] != osTable) {
# 1510|   	ctx->currTables[OS] = osTable;
# 1511|-> 	rebuildCompatTables(ctx, OS, os);
# 1512|       }
# 1513|   }

Error: CLANG_WARNING: [#def130]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1534:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1532|   
# 1533|       if (arch == NULL) {
# 1534|-> 	arch = host_cpu;
# 1535|   	if (ctx->tables[ctx->currTables[ARCH]].hasTranslate)
# 1536|   	    arch = lookupInDefaultTable(arch,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def131]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c: scope_hint: In function ‘rpmSetMachine’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1534:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘host_cpu’
# 1532|   
# 1533|       if (arch == NULL) {
# 1534|-> 	arch = host_cpu;
# 1535|   	if (ctx->tables[ctx->currTables[ARCH]].hasTranslate)
# 1536|   	    arch = lookupInDefaultTable(arch,

Error: CLANG_WARNING: [#def132]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmrc.c:1862:6: warning[deadcode.DeadStores]: Value stored to 'vp' is never read
# 1860|   	    vp->value = _free(vp->value);
# 1861|   	    vp->arch = _free(vp->arch);
# 1862|-> 	    vp = _free(vp);
# 1863|   	}
# 1864|   	ctx->values[i].value = _free(ctx->values[i].value);

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def140]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmscript.c:401: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
#  399|   	    mline[size] = '\n';
#  400|   
#  401|-> 	    ret_size = fwrite(mline, size + 1, 1, in);
#  402|   	    mline = _free(mline);
#  403|   	    if (ret_size != 1) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def141]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmscript.c:414: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
#  412|   	}
#  413|       }
#  414|->     fclose(in);
#  415|       in = NULL;
#  416|   

Error: CLANG_WARNING: [#def142]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmscript.c:444:9: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  442|   	fclose(in);
#  443|   
#  444|->     if (inpipe[0])
#  445|   	close(inpipe[0]);
#  446|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def143]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmscript.c:444:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘inpipe[0]’
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmscript.c:5: included_from: Included from here.
#  442|   	fclose(in);
#  443|   
#  444|->     if (inpipe[0])
#  445|   	close(inpipe[0]);
#  446|   

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

Error: CLANG_WARNING: [#def145]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def146]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmte.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

Error: CLANG_WARNING: [#def150]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmts.c:453:5: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  451|   static void finiPgpData(struct pgpdata_s *pd)
#  452|   {
#  453|->     free(pd->timestr);
#  454|       free(pd->verid);
#  455|       free(pd->signid);

Error: CLANG_WARNING: [#def151]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmts.c:663:3: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  661|   	if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_TEST)) {
#  662|   	    if (ts->keyringtype == KEYRING_FS)
#  663|-> 		rc = rpmtsImportFSKey(txn, h, 0);
#  664|   	    else
#  665|   		rc = rpmtsImportHeader(txn, h, 0);

Error: CLANG_WARNING: [#def152]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmts.c:665:3: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  663|   		rc = rpmtsImportFSKey(txn, h, 0);
#  664|   	    else
#  665|-> 		rc = rpmtsImportHeader(txn, h, 0);
#  666|   	}
#  667|       }

Error: CLANG_WARNING: [#def153]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmts.c:675:16: warning[core.NullDereference]: Array access (from variable 'subkeys') results in a null pointer dereference
#  673|       rpmPubkeyFree(pubkey);
#  674|       for (i = 0; i < subkeysCount; i++)
#  675|-> 	rpmPubkeyFree(subkeys[i]);
#  676|       free(subkeys);
#  677|   

Error: CLANG_WARNING: [#def154]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/rpmts.c:863:5: warning[deadcode.DeadStores]: Value stored to 'ts' is never read
#  861|       (void) rpmtsUnlink(ts);
#  862|   
#  863|->     ts = _free(ts);
#  864|   
#  865|       return NULL;

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/tagexts.c: scope_hint: In function ‘epochnumTag’
rpm-4.19.1.1-build/rpm-4.19.1.1/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 = malloc(sizeof(*e));
#  858|-> 	*e = 0;
#  859|   	td->data = e;
#  860|   	td->type = RPM_INT32_TYPE;

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

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

Error: CLANG_WARNING: [#def162]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def163]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def164]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def165]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def166]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def167]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def169]
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c: scope_hint: In function ‘fts_safe_changedir.part.0’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:84:25: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:1137:32: note: in expansion of macro ‘__open’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c: scope_hint: In function ‘fts_safe_changedir.part.0’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:1137:32: note: in expansion of macro ‘__open’
rpm-4.19.1.1-build/rpm-4.19.1.1/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.1.1-build/rpm-4.19.1.1/misc/system.h:15: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def170]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def171]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def172]
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c: scope_hint: In function ‘fts_build’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:810:33: warning[-Wanalyzer-null-argument]: use of NULL ‘cp’ where non-null expected
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:716:15: note: in expansion of macro ‘NAPPEND’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:717:13: note: in expansion of macro ‘ISSET’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:734:22: note: in expansion of macro ‘ISSET’
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/fts.c:80: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def173]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def174]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def175]
rpm-4.19.1.1-build/rpm-4.19.1.1/lib/fprint.c:25: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def176]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def177]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def178]
rpm-4.19.1.1-build/rpm-4.19.1.1/plugins/audit.c: scope_hint: In function ‘audit_tsm_post’
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def179]
rpm-4.19.1.1-build/rpm-4.19.1.1/plugins/fapolicyd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def180]
rpm-4.19.1.1-build/rpm-4.19.1.1/plugins/fapolicyd.c: scope_hint: In function ‘open_fifo’
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def181]
rpm-4.19.1.1-build/rpm-4.19.1.1/plugins/systemd_inhibit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def182]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def183]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/argv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def184]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def185]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def186]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:28:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def187]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:34:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def188]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:35:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def189]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:36:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def190]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:39:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def191]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:41:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def192]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:45:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def193]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:46:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c: scope_hint: In function ‘base64_encode_block’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def194]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:49:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def195]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:51:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def196]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/base64.c:53:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def197]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def198]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:282: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  280|   {
#  281|       char *temp;
#  282|->     if ((state->flags & RPMEXPR_DISCARD) != 0)
#  283|   	size = 0;
#  284|       temp = xmalloc(size + 1);

Error: CPPCHECK_WARNING (CWE-758): [#def199]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:480: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  478|   	v = valueMakeString(temp);
#  479|         } else {
#  480|-> 	v = valueMakeVersion(state->flags & RPMEXPR_DISCARD ? "0" : temp);
#  481|           free(temp); /* version doesn't take ownership of the string */
#  482|           if (v == 0) {

Error: CPPCHECK_WARNING (CWE-758): [#def200]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:531: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  529|       int i;
#  530|       
#  531|->     if (state->flags & RPMEXPR_DISCARD)
#  532|   	return valueMakeString(xstrdup(""));
#  533|       args = rpmhookArgsNew(argc);

Error: CPPCHECK_WARNING (CWE-758): [#def201]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:722: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  720|         int i1 = v1->data.i, i2 = v2->data.i;
#  721|   
#  722|->       if ((state->flags & RPMEXPR_DISCARD) != 0)
#  723|           continue;	/* just use v1 in discard mode */
#  724|         if ((i2 == 0) && (op == TOK_DIVIDE)) {

Error: CPPCHECK_WARNING (CWE-758): [#def202]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:908: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  906|   
#  907|       if ((op == TOK_LOGICAL_AND && !b1) || (op == TOK_LOGICAL_OR && b1))
#  908|->       state->flags |= RPMEXPR_DISCARD;		/* short-circuit */
#  909|   
#  910|       if (rdToken(state))

Error: CPPCHECK_WARNING (CWE-758): [#def203]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:956: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  954|   
#  955|       if (!cond)
#  956|-> 	state->flags |= RPMEXPR_DISCARD;	/* short-circuit */
#  957|       if (rdToken(state))
#  958|         goto err;

Error: CPPCHECK_WARNING (CWE-758): [#def204]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/expression.c:970: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  968|   
#  969|       if (cond)
#  970|-> 	state->flags |= RPMEXPR_DISCARD;	/* short-circuit */
#  971|       if (rdToken(state))
#  972|         goto err;

Error: CLANG_WARNING: [#def205]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/lposix.c:395:23: warning[unix.Malloc]: Potential leak of memory pointed to by 'e'
#  393|   	const char *s=luaL_checklstring(L, 1, &l);
#  394|   	char *e=malloc(++l);
#  395|-> 	return pushresult(L, (e==NULL) ? -1 : putenv(memcpy(e,s,l)), s);
#  396|   #else
#  397|   	return -1;

Error: CLANG_WARNING: [#def206]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/lposix.c:778:20: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  776|   static int Fsysconf(lua_State *L, int i, const void *data)
#  777|   {
#  778|-> 	lua_pushnumber(L, sysconf(Ksysconf[i]));
#  779|   	return 1;
#  780|   }

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

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

Error: GCC_ANALYZER_WARNING (CWE-685): [#def209]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/macro.c:2132:42: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (3 consumed)
# 2130|   
# 2131|       va_start(ap, arg);
# 2132|->     for (pe = buf, s = arg; s != NULL; s = va_arg(ap, const char *))
# 2133|   	pe = stpcpy(pe, s);
# 2134|       va_end(ap);

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-416): [#def213]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:68:35: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1396:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1396:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1396: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): [#def214]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdPop’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:91:15: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def215]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def216]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def217]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:212:11: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdstat_exit’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1396:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1396:44: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1396:44: note: in expansion of macro ‘FDIOVEC’
#  210|   	fps->syserrno = errno;
#  211|       }
#  212|->     if (fd->stats != NULL)
#  213|   	(void) rpmswExit(fdOp(fd, opx), rc);
#  214|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def218]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdstat_print’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:221:25: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdstat_print’
#  219|       int opx;
#  220|   
#  221|->     if (fd == NULL || fd->stats == NULL) return;
#  222|       for (opx = 0; opx < 4; opx++) {
#  223|   	rpmop op = &fd->stats->ops[opx];

Error: GCC_ANALYZER_WARNING (CWE-416): [#def219]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdFree’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:338:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘fd’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘fdFree’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:64:25: note: in expansion of macro ‘DBG’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1412:5: note: in expansion of macro ‘DBGIO’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:64:25: note: in expansion of macro ‘DBG’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1412:5: note: in expansion of macro ‘DBGIO’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:5: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/misc/system.h:64:28: note: in definition of macro ‘_free’
#  336|   {
#  337|       if (fd) {
#  338|-> 	if (--fd->nrefs > 0)
#  339|   	    return fd;
#  340|   	fd->stats = _free(fd->stats);

Error: CLANG_WARNING: [#def220]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1416:5: warning[unix.Malloc]: Use of memory after it is freed
# 1414|       fdPop(fd);
# 1415|   
# 1416|->     fdFree(fd);
# 1417|       return ec;
# 1418|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c: scope_hint: In function ‘Ferror’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1639:14: warning[-Wanalyzer-jump-through-null]: jump through null pointer
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1638:42: note: in expansion of macro ‘FDIOVEC’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio.c:1638:42: note: in expansion of macro ‘FDIOVEC’
# 1637|       for (FDSTACK_t fps = fd->fps; fps != NULL; fps = fps->prev) {
# 1638|   	fdio_ferror_function_t _ferror = FDIOVEC(fps, _ferror);
# 1639|-> 	rc = _ferror(fps);
# 1640|   
# 1641|   	if (rc)

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

Error: CLANG_WARNING: [#def223]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: CLANG_WARNING: [#def224]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlog.c:451:2: warning[deadcode.DeadStores]: Value stored to 'n' is never read
#  449|   
#  450|   	va_start(ap, fmt);
#  451|-> 	n = vsnprintf(msg, nb, fmt, ap);
#  452|   	va_end(ap);
#  453|   

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c: scope_hint: In function ‘rpmluaGetLua’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c:182:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c:181:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c:181:5: note: in expansion of macro ‘INITSTATE’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c:181: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.1.1-build/rpm-4.19.1.1/include/rpm/rpmpgp.h:17: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmio_internal.h:9: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c:32: included_from: Included from here.
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmlua.c:181:5: note: in expansion of macro ‘INITSTATE’
#  180|   {
#  181|       INITSTATE(lua);
#  182|->     return lua->L;
#  183|   }
#  184|   

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘rstrlenhash’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c:69:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def236]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘poolHashAddHEntry’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c:170:21: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def237]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def238]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c: scope_hint: In function ‘rpmstrPoolGet’
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmstrpool.c:388:13: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def239]
rpm-4.19.1.1-build/rpm-4.19.1.1/rpmio/rpmver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

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

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

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

Error: CLANG_WARNING: [#def246]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def247]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def248]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def249]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/elfdeps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CLANG_WARNING: [#def252]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpm2archive.c:173:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  171|   	format_code = ARCHIVE_FORMAT_CPIO_SVR4_NOCRC;
#  172|       } else {
#  173|-> 	rc = ARCHIVE_FAILED;
#  174|       }
#  175|   

Error: CLANG_WARNING: [#def253]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpm2archive.c:248:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  246|       /* End of iteration is not an error */
#  247|       if (rc == RPMERR_ITER_END) {
#  248|-> 	rc = 0;
#  249|       }
#  250|   

Error: CLANG_WARNING: [#def254]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpm2archive.c:259:5: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
#  257|   	fprintf(stderr, "Error writing archive: %s\n", archive_error_string(a));
#  258|       archive_write_free(a);
#  259|->     buf = _free(buf);
#  260|       rpmfilesFree(files);
#  261|       rpmfiFree(fi);

Error: CLANG_WARNING: [#def255]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpm2cpio.c:59:2: warning[deadcode.DeadStores]: Value stored to 'ts' is never read
#   57|   	rc = rpmReadPackageFile(ts, fdi, "rpm2cpio", &h);
#   58|   
#   59|-> 	ts = rpmtsFree(ts);
#   60|       }
#   61|   

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

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

Error: CLANG_WARNING: [#def258]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def259]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def260]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def261]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def262]
rpm-4.19.1.1-build/rpm-4.19.1.1/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: [#def263]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpmsort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def264]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpmsort.c: scope_hint: In function ‘read_file’
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def265]
rpm-4.19.1.1-build/rpm-4.19.1.1/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): [#def266]
rpm-4.19.1.1-build/rpm-4.19.1.1/tools/rpmsort.c: scope_hint: In function ‘split_package_string’
rpm-4.19.1.1-build/rpm-4.19.1.1/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.1.1-1.fc40
store-results-to/tmp/tmpcn2nakhm/rpm-4.19.1.1-1.fc40.tar.xz
time-created2024-07-03 17:50:29
time-finished2024-07-03 17:53:35
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcn2nakhm/rpm-4.19.1.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpcn2nakhm/rpm-4.19.1.1-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9