Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
xz-5.4.6-build/xz-5.4.6/src/liblzma/common/filter_encoder.c: scope_hint: In function 'lzma_mt_block_size'
xz-5.4.6-build/xz-5.4.6/src/liblzma/common/filter_encoder.c:259:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xz-5.4.6-build/xz-5.4.6/src/liblzma/common/filter_encoder.c: scope_hint: In function 'lzma_mt_block_size'
#  257|   		const lzma_filter_encoder *const fe
#  258|   				= encoder_find(filters[i].id);
#  259|-> 		if (fe->block_size != NULL) {
#  260|   			const uint64_t size
#  261|   					= fe->block_size(filters[i].options);

Error: CLANG_WARNING: [#def2]
xz-5.4.6-build/xz-5.4.6/src/xz/args.c:97:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   95|   	for (size_t i = 0; i < count; ++i) {
#   96|   		// Locate the next comma and replace it with \0.
#   97|-> 		char *p = strchr(str, ',');
#   98|   		if (p != NULL)
#   99|   			*p = '\0';

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-110.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namexz-5.6.2-1.fc41
diffbase-store-results-to/tmp/tmpzcva8m72/xz-5.6.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 18:32:18
diffbase-time-finished2024-07-03 18:34:20
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpzcva8m72/xz-5.6.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpzcva8m72/xz-5.6.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-110.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexz-5.4.6-3.fc40
store-results-to/tmp/tmp6248fx1j/xz-5.4.6-3.fc40.tar.xz
time-created2024-07-03 18:29:35
time-finished2024-07-03 18:32:02
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6248fx1j/xz-5.4.6-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp6248fx1j/xz-5.4.6-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9