Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5160:15: warning[-Wanalyzer-null-argument]: use of NULL ‘out.filename’ where non-null expected
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5074:12: enter_function: entry to ‘img_dd’
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5095:17: release_memory: ‘in.filename’ is NULL
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5101:17: release_memory: ‘in.filename’ is NULL
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5108:25: branch_true: following ‘true’ branch...
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5108:25: branch_true: ...to here
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5116:25: branch_true: following ‘true’ branch...
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5116:25: branch_true: ...to here
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5156:22: branch_true: following ‘true’ branch (when ‘i < argc’)...
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5158:15: branch_true: ...to here
qemu-9.2.2/qemu_kvm_build/../qemu-img.c:5160:15: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
# 5158|           arg = g_strdup(argv[i]);
# 5159|   
# 5160|->         tmp = strchr(arg, '=');
# 5161|           if (tmp == NULL) {
# 5162|               error_report("unrecognized operand %s", arg);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-29.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameqemu-9.2.2-8.fc43
diffbase-store-results-to/tmp/tmp1mdh1jfl/qemu-9.2.2-8.fc43.tar.xz
diffbase-time-created2025-04-25 16:45:15
diffbase-time-finished2025-04-25 18:04:24
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp1mdh1jfl/qemu-9.2.2-8.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1mdh1jfl/qemu-9.2.2-8.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-29.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameqemu-9.2.2-2.fc42
store-results-to/tmp/tmpgxwhn8_u/qemu-9.2.2-2.fc42.tar.xz
time-created2025-04-25 15:24:22
time-finished2025-04-25 16:43:35
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpgxwhn8_u/qemu-9.2.2-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgxwhn8_u/qemu-9.2.2-2.fc42.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9