• E
    virsh: avoid integer overflow · 6f9432fc
    Eric Blake 提交于
    Detected by Coverity.  info.nrVirtCpu is unsigned short, but if
    cpumaplen is int, then the product of the two in vshMalloc risks
    unintended sign extension.  cmdVcpuinfo had already solved this
    by using size_t cpumaplen.
    
    * tools/virsh.c (cmdVcpuPin): Use correct type.
    6f9432fc
virsh.c 397.0 KB