libqalculate-5.3.0-1.fc42

List of Findings

Error: CPPCHECK_WARNING (CWE-664): [#def1]
libqalculate-5.3.0-build/libqalculate-5.3.0/libqalculate/MathStructure-eval.cc:1856: error[invalidContainer]: Using pointer to member variable 'v_subs' that may be invalid.
# 1854|   			m_cis->ref();
# 1855|   			ERASE(i_cis)
# 1856|-> 			multiply_nocopy(m_cis);
# 1857|   		}
# 1858|   	}

Error: CPPCHECK_WARNING (CWE-664): [#def2]
libqalculate-5.3.0-build/libqalculate-5.3.0/libqalculate/MathStructure-factor.cc:2013: error[invalidContainer]: Using pointer to member variable 'v_subs' that may be invalid.
# 2011|   										mcur = &CHILD(i);
# 2012|   									}
# 2013|-> 									while(mcur && i + 1 < SIZE) {
# 2014|   										if(CHILD(i + 1).isPower()) {
# 2015|   											if(CHILD(i + 1)[0].isAddition() && CHILD(i + 1)[1].isNumber() && mcur->equals(CHILD(i + 1)[0])) {

Error: CPPCHECK_WARNING (CWE-664): [#def3]
libqalculate-5.3.0-build/libqalculate-5.3.0/libqalculate/MathStructure-print.cc:2754: error[invalidContainer]: Using pointer to member variable 'v_subs' that may be invalid.
# 2752|   					munc->ref();
# 2753|   					CLEAR
# 2754|-> 					APPEND_POINTER(mmid)
# 2755|   					APPEND_POINTER(munc)
# 2756|   					APPEND(m_zero)

Error: CPPCHECK_WARNING (CWE-664): [#def4]
libqalculate-5.3.0-build/libqalculate-5.3.0/libqalculate/MathStructure-print.cc:2755: error[invalidContainer]: Using pointer to member variable 'v_subs' that may be invalid.
# 2753|   					CLEAR
# 2754|   					APPEND_POINTER(mmid)
# 2755|-> 					APPEND_POINTER(munc)
# 2756|   					APPEND(m_zero)
# 2757|   				}

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-228.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibqalculate-5.3.0-1.fc42
store-results-to/tmp/tmpb2xfj35n/libqalculate-5.3.0-1.fc42.tar.xz
time-created2024-11-13 01:41:43
time-finished2024-11-13 01:46:03
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpb2xfj35n/libqalculate-5.3.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpb2xfj35n/libqalculate-5.3.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9