libqalculate-5.0.0-2.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-algebra.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-calculus.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-calculus.cc:631:5: warning[core.CallAndMessage]: Called C++ object pointer is null
#  629|   			int prec = x_i.precision(true);
#  630|   			if(prec >= 0 && prec < precbak && PRECISION * 5 < 1000) {
#  631|-> 				CALCULATOR->setPrecision(PRECISION * 10 > 1000 ? 1000 : PRECISION * 10);
#  632|   				CALCULATOR->endTemporaryStopMessages();
#  633|   				goto iibf_begin;

Error: CLANG_WARNING: [#def4]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-calculus.cc:637:27: warning[core.CallAndMessage]: Called C++ object pointer is null
#  635|   		}
#  636|   	}
#  637|-> 	if(precbak != PRECISION) CALCULATOR->setPrecision(precbak);
#  638|   	CALCULATOR->endTemporaryStopMessages(true);
#  639|   	if(ret == 1) mstruct = x_i;

Error: CLANG_WARNING: [#def5]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-calculus.cc:638:2: warning[core.CallAndMessage]: Called C++ object pointer is null
#  636|   	}
#  637|   	if(precbak != PRECISION) CALCULATOR->setPrecision(precbak);
#  638|-> 	CALCULATOR->endTemporaryStopMessages(true);
#  639|   	if(ret == 1) mstruct = x_i;
#  640|   	return ret;

Error: CPPCHECK_WARNING: [#def6]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-explog.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-logical.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-matrixvector.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def9]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-matrixvector.cc:92:14: warning[core.DivideZero]: Division by zero
#   90|   		if(mstruct.rows() < rows || mstruct.columns() < cols) return 0;
#   91|   		for(size_t i = 0; i < mvector.size(); i++) {
#   92|-> 			mstruct[i / cols][i % cols] = mvector[i];
#   93|   		}
#   94|   		return 1;

Error: CPPCHECK_WARNING: [#def10]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:494:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  492|   		long int prime_i = NR_OF_PRIMES_L;
#  493|   		long int step = prime_i / 2;
#  494|-> 		while(nr != PRIMES_L[prime_i - 1]) {
#  495|   			if(nr < PRIMES_L[prime_i - 1]) {
#  496|   				prime_i -= step;

Error: CLANG_WARNING: [#def12]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:536:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  534|   		long int prime_i = NR_OF_PRIMES_L;
#  535|   		long int step = prime_i / 2;
#  536|-> 		while(nr != PRIMES_L[prime_i - 1]) {
#  537|   			if(nr < PRIMES_L[prime_i - 1]) {
#  538|   				prime_i -= step;

Error: CLANG_WARNING: [#def13]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:582:64: warning[core.UndefinedBinaryOperatorResult]: The right operand of '/' is a garbage value due to array index out of bounds
#  580|   		return (x + 1) / 2;
#  581|   	}
#  582|-> 	long long int v = primecount_phi(x, a - 1) - primecount_phi(x / PRIMES_L[a - 1], a - 1);
#  583|   	primecount_cache[x][a] = v;
#  584|   	return v;

Error: CLANG_WARNING: [#def14]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:2583:3: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2581|   	bool recalculable = false;
# 2582|   	while(true) {
# 2583|-> 		CALCULATOR->beginTemporaryStopMessages();
# 2584|   		mstruct = vargs[0];
# 2585|   		mstruct.eval(eo);

Error: CLANG_WARNING: [#def15]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:2592:29: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2590|   		if(nr.isInteger()) {
# 2591|   			CALCULATOR->endTemporaryStopMessages(true);
# 2592|-> 			if(precbak != PRECISION) CALCULATOR->setPrecision(precbak);
# 2593|   			mstruct = nr;
# 2594|   			return 1;

Error: CLANG_WARNING: [#def16]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:2598:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2596|   			if(!recalculable) recalculable = !contains_unrecalculable_interval(vargs[0]);
# 2597|   			if(recalculable && !CALCULATOR->aborted() && PRECISION < 2000) {
# 2598|-> 				CALCULATOR->endTemporaryStopMessages(false);
# 2599|   				CALCULATOR->setPrecision(PRECISION * 5);
# 2600|   			} else {

Error: CLANG_WARNING: [#def17]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:2599:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2597|   			if(recalculable && !CALCULATOR->aborted() && PRECISION < 2000) {
# 2598|   				CALCULATOR->endTemporaryStopMessages(false);
# 2599|-> 				CALCULATOR->setPrecision(PRECISION * 5);
# 2600|   			} else {
# 2601|   				CALCULATOR->error(true, _("Insufficient precision."), NULL);

Error: CLANG_WARNING: [#def18]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-number.cc:2607:27: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2605|   	}
# 2606|   	CALCULATOR->endTemporaryStopMessages(true);
# 2607|-> 	if(precbak != PRECISION) CALCULATOR->setPrecision(precbak);
# 2608|   	return -1;
# 2609|   }

Error: CPPCHECK_WARNING: [#def19]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-statistics.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def20]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-statistics.cc:288:70: warning[core.CallAndMessage]: Called C++ object pointer is null
#  286|   	}
#  287|   	for(size_t index = 0; index < is.size(); index++) {
#  288|-> 		if(is[index] > n || (is[index] == n && comparison_is_equal_or_less(value->compare(*vargs_nodup[index])))) {
#  289|   			n = is[index];
#  290|   			value = vargs_nodup[index];

Error: CPPCHECK_WARNING: [#def21]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-trigonometry.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/BuiltinFunctions-util.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Calculator-calculate.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Calculator-convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Calculator-definitions.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Calculator-parse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Calculator-plot.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Calculator.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/DataSet.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/ExpressionItem.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Function.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-calculate.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-decompose.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-differentiate.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-eval.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-factor.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def38]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-factor.cc:745:13: warning[deadcode.DeadStores]: Value stored to 'exp' is never read
#  743|   										if(exp) {
#  744|   											if(cmp_mstruct->exponent()->number().isLessThan(exp->number())) {
#  745|-> 												exp = cmp_mstruct->exponent();
#  746|   											}
#  747|   											b = true;

Error: CLANG_WARNING: [#def39]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-factor.cc:1170:3: warning[deadcode.DeadStores]: Value stored to 'max_msecs' is never read
# 1168|   		}
# 1169|   		endtime.tv_usec = usecs;
# 1170|-> 		max_msecs = 0;
# 1171|   		endtime_p = &endtime;
# 1172|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def40]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-factor.cc:1987: error[invalidContainer]: Using pointer to member variable 'v_subs' that may be invalid.
# 1985|   										mcur = &CHILD(i);
# 1986|   									}
# 1987|-> 									while(mcur && i + 1 < SIZE) {
# 1988|   										if(CHILD(i + 1).isPower()) {
# 1989|   											if(CHILD(i + 1)[0].isAddition() && CHILD(i + 1)[1].isNumber() && mcur->equals(CHILD(i + 1)[0])) {

Error: CLANG_WARNING: [#def41]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-factor.cc:2369:9: warning[deadcode.DeadStores]: Value stored to 'b' is never read
# 2367|   								}
# 2368|   							} else if(CHILD(i).isMultiplication() && CHILD(i).size() > 1) {
# 2369|-> 								b = true;
# 2370|   								size_t i2 = 0;
# 2371|   								if(CHILD(i)[0].isNumber()) {

Error: CLANG_WARNING: [#def42]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-factor.cc:2922:5: warning[deadcode.DeadStores]: Value stored to 'b' is never read
# 2920|   					}
# 2921|   				}
# 2922|-> 				b = false;
# 2923|   				// a*y + a*z + x = a(y + z) + x
# 2924|   				syms.clear();

Error: CPPCHECK_WARNING: [#def43]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-gcd.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-integrate.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def45]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-integrate.cc:4346:39: warning[deadcode.DeadStores]: Value stored to 'recalc' is never read
# 4344|   		if(b) {
# 4345|   			if(x_var.isVariable() && !x_var.variable()->isKnown() && !((UnknownVariable*) x_var.variable())->interval().isUndefined()) {
# 4346|-> 				if(fix_sgn_x(*this, x_var, eo_t)) recalc = true;
# 4347|   				while(true) {
# 4348|   					mfound = find_abs_x2(*this, x_var);

Error: CLANG_WARNING: [#def46]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-integrate.cc:4357:8: warning[deadcode.DeadStores]: Value stored to 'recalc' is never read
# 4355|   						if(m_interval.representsNonNegative(true)) {
# 4356|   							replace_abs_x(*this, MathStructure(*mfound), false);
# 4357|-> 							recalc = true;
# 4358|   						} else if(m_interval.representsNegative(true)) {
# 4359|   							replace_abs_x(*this, MathStructure(*mfound), true);

Error: CLANG_WARNING: [#def47]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-integrate.cc:4360:8: warning[deadcode.DeadStores]: Value stored to 'recalc' is never read
# 4358|   						} else if(m_interval.representsNegative(true)) {
# 4359|   							replace_abs_x(*this, MathStructure(*mfound), true);
# 4360|-> 							recalc = true;
# 4361|   						} else {
# 4362|   							break;

Error: CLANG_WARNING: [#def48]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-integrate.cc:7475:7: warning[deadcode.DeadStores]: Value stored to 'b' is never read
# 7473|   					eo3.approximation = APPROXIMATION_EXACT;
# 7474|   					if(m1.isInfinite()) {
# 7475|-> 						b = mstruct_lower.calculateLimit(x_var, m1, eo3) && !mstruct_lower.isInfinite();
# 7476|   					} else {
# 7477|   						mstruct_lower.replace(x_var, lower_limit, false, false, true);

Error: CLANG_WARNING: [#def49]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-integrate.cc:7478:7: warning[deadcode.DeadStores]: Value stored to 'b' is never read
# 7476|   					} else {
# 7477|   						mstruct_lower.replace(x_var, lower_limit, false, false, true);
# 7478|-> 						b = eo.approximation == APPROXIMATION_EXACT || !contains_incalc_function(mstruct_lower, eo);
# 7479|   					}
# 7480|   					MathStructure mstruct_upper(mstruct);

Error: CPPCHECK_WARNING: [#def50]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-isolatex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def51]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-isolatex.cc:2419:6: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2417|   					b = isolate_x_sub(eo, eo2, u_var);
# 2418|   					calculateReplace(u_var, mvar, eo2);
# 2419|-> 					var->destroy();
# 2420|   					if(b && contains(mbak)) {
# 2421|   						set(mbak);

Error: CLANG_WARNING: [#def52]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-isolatex.cc:2434:6: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2432|   					b = isolate_x_sub(eo, eo2, u_var);
# 2433|   					calculateReplace(u_var, mvar, eo2);
# 2434|-> 					var->destroy();
# 2435|   					if(b && contains(mbak)) {
# 2436|   						set(mbak);

Error: CLANG_WARNING: [#def53]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-isolatex.cc:4788:8: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'mposcheck'
# 4786|   						if(ct_comp == COMPARISON_EQUALS_LESS || ct_comp == COMPARISON_LESS) {
# 4787|   							mposcheck = new MathStructure(CHILD(0)[0]);
# 4788|-> 							mposcheck->add(m_zero, OPERATION_EQUALS_GREATER);
# 4789|   							mposcheck->isolate_x_sub(eo, eo2, x_var);
# 4790|   						}

Error: CPPCHECK_WARNING: [#def54]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-limit.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-matrixvector.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-polynomial.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure-print.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/MathStructure.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Number.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Prefix.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def61]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Prefix.cc:216:3: warning[deadcode.DeadStores]: Value stored to 'index' is never read
#  214|   	if(index < 1 || index > names.size()) {
#  215|   		names.push_back(ename);
#  216|-> 		index = names.size();
#  217|   	} else {
#  218|   		names.insert(names.begin() + (index - 1), ename);

Error: CLANG_WARNING: [#def62]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Prefix.cc:225:3: warning[deadcode.DeadStores]: Value stored to 'index' is never read
#  223|   	if(index < 1 || index > names.size()) {
#  224|   		names.push_back(ExpressionName(sname));
#  225|-> 		index = names.size();
#  226|   	} else {
#  227|   		names.insert(names.begin() + (index - 1), ExpressionName(sname));

Error: CPPCHECK_WARNING: [#def63]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/QalculateDateTime.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Unit.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/Variable.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/util.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def67]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/util.cc:892:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer'
#  890|   		}
#  891|   	}
#  892|-> 	return NULL;
#  893|   #else
#  894|   	return NULL;

Error: CLANG_WARNING: [#def68]
libqalculate-5.0.0-build/libqalculate-5.0.0/libqalculate/util.cc:922:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer'
#  920|   		}
#  921|   	}
#  922|-> 	return NULL;
#  923|   #else
#  924|   	return NULL;

Error: CPPCHECK_WARNING: [#def69]
libqalculate-5.0.0-build/libqalculate-5.0.0/po-defs/remove-untranslated.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
libqalculate-5.0.0-build/libqalculate-5.0.0/src/qalc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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-116.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibqalculate-5.0.0-2.fc41
store-results-to/tmp/tmp3fttn974/libqalculate-5.0.0-2.fc41.tar.xz
time-created2024-07-03 15:55:44
time-finished2024-07-03 16:00:24
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3fttn974/libqalculate-5.0.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp3fttn974/libqalculate-5.0.0-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9