Newly introduced defects

List of Defects

Error: CLANG_WARNING: [#def1]
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: [#def2]
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: [#def3]
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: [#def4]
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: [#def5]
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|   }

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-116.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibqalculate-4.9.0-4.fc40
diffbase-store-results-to/tmp/tmp4ydaqou6/libqalculate-4.9.0-4.fc40.tar.xz
diffbase-time-created2024-07-03 15:50:15
diffbase-time-finished2024-07-03 15:55:23
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp4ydaqou6/libqalculate-4.9.0-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp4ydaqou6/libqalculate-4.9.0-4.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
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
titleNewly introduced defects
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