Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1857:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘decode.<U2e60>.<U2d20>.len’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1842:12: enter_function: entry to ‘nvmx_handle_vmptrst’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1851:10: call_function: calling ‘decode_vmx_inst’ from ‘nvmx_handle_vmptrst’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1851:10: return_function: returning to ‘nvmx_handle_vmptrst’ from ‘decode_vmx_inst’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1852:8: branch_false: following ‘false’ branch (when ‘rc == 0’)...
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1855:11: branch_false: ...to here
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1857:10: danger: use of uninitialized value ‘decode.<U2e60>.<U2d20>.len’ here
# 1855|       gpa = nvcpu->nv_vvmcxaddr;
# 1856|   
# 1857|->     rc = hvm_copy_to_guest_linear(decode.mem, &gpa, decode.len, 0, &pfinfo);
# 1858|       if ( rc == HVMTRANS_bad_linear_to_gfn )
# 1859|           hvm_inject_page_fault(pfinfo.ec, pfinfo.linear);

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-145.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namexen-4.21.1-10.fc45
diffbase-store-results-to/tmp/tmpd_wov3ky/xen-4.21.1-10.fc45.tar.xz
diffbase-time-created2026-08-03 21:54:18
diffbase-time-finished2026-08-03 22:07:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpd_wov3ky/xen-4.21.1-10.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpd_wov3ky/xen-4.21.1-10.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-145.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namexen-4.21.1-1.fc44
store-results-to/tmp/tmphy6o9t9w/xen-4.21.1-1.fc44.tar.xz
time-created2026-08-03 21:39:09
time-finished2026-08-03 21:53:42
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmphy6o9t9w/xen-4.21.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmphy6o9t9w/xen-4.21.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9