Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
device-mapper-multipath-0.9.7-build/multipath-tools-0.9.7/multipath/main.c: scope_hint: In function ‘print_cmd_valid’
device-mapper-multipath-0.9.7-build/multipath-tools-0.9.7/multipath/main.c:410:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
device-mapper-multipath-0.9.7-build/multipath-tools-0.9.7/libmultipath/prio.h:8: included_from: Included from here.
device-mapper-multipath-0.9.7-build/multipath-tools-0.9.7/multipath/main.c:36: included_from: Included from here.
device-mapper-multipath-0.9.7-build/multipath-tools-0.9.7/multipath/main.c:407:22: note: in expansion of macro ‘VECTOR_SLOT’
device-mapper-multipath-0.9.7-build/multipath-tools-0.9.7/multipath/main.c:407:22: note: in expansion of macro ‘VECTOR_SLOT’
#  408|   		select_find_multipaths_timeout(conf, pp);
#  409|   		wait = find_multipaths_check_timeout(
#  410|-> 			pp, pp->find_multipaths_timeout, &until);
#  411|   		if (wait != FIND_MULTIPATHS_WAITING)
#  412|   			k = PATH_IS_NOT_VALID;

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-13.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namedevice-mapper-multipath-0.9.9-1.fc41
diffbase-store-results-to/tmp/tmpxkfi526u/device-mapper-multipath-0.9.9-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:22:32
diffbase-time-finished2024-07-03 12:24:33
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpxkfi526u/device-mapper-multipath-0.9.9-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpxkfi526u/device-mapper-multipath-0.9.9-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-13.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedevice-mapper-multipath-0.9.7-7.fc40
store-results-to/tmp/tmplsg30bro/device-mapper-multipath-0.9.7-7.fc40.tar.xz
time-created2024-07-03 12:19:49
time-finished2024-07-03 12:22:16
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplsg30bro/device-mapper-multipath-0.9.7-7.fc40.tar.xz' '--gcc-analyze' '/tmp/tmplsg30bro/device-mapper-multipath-0.9.7-7.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9