Newly introduced defects

List of Defects

Error: CLANG_WARNING: [#def1]
mdadm-4.3-build/mdadm-4.3/raid6check.c:192:5: warning[core.VLASize]: Declared variable-length array (VLA) has negative size
#  190|   			}
#  191|   			else {
#  192|-> 				char *all_but_failed_blocks[syndrome_disks];
#  193|   				for(i = 0; i < syndrome_disks; i++) {
#  194|   					if (i == disk[j])

Error: CLANG_WARNING: [#def2]
mdadm-4.3-build/mdadm-4.3/raid6check.c:192:5: warning[core.VLASize]: Declared variable-length array (VLA) has zero size
#  190|   			}
#  191|   			else {
#  192|-> 				char *all_but_failed_blocks[syndrome_disks];
#  193|   				for(i = 0; i < syndrome_disks; i++) {
#  194|   					if (i == disk[j])

Error: CLANG_WARNING: [#def3]
mdadm-4.3-build/mdadm-4.3/raid6check.c:443:4: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  441|   
#  442|   		for(j = 0; j < (chunk_size >> CHECK_PAGE_BITS); j++) {
#  443|-> 			int role = disk[j];
#  444|   			if (role >= -2) {
#  445|   				int slot = block_index_for_slot[role];

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-56.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namemdadm-4.2-8.fc40
diffbase-store-results-to/tmp/tmp8aakasur/mdadm-4.2-8.fc40.tar.xz
diffbase-time-created2024-07-03 16:10:19
diffbase-time-finished2024-07-03 16:12:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp8aakasur/mdadm-4.2-8.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp8aakasur/mdadm-4.2-8.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-56.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namemdadm-4.3-3.fc41
store-results-to/tmp/tmpnzoj29a0/mdadm-4.3-3.fc41.tar.xz
time-created2024-07-03 16:12:42
time-finished2024-07-03 16:14:30
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpnzoj29a0/mdadm-4.3-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpnzoj29a0/mdadm-4.3-3.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9