Task #133026 - fixed.err

back to task #133026
download
Error: GCC_ANALYZER_WARNING (CWE-457):
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);