]> xenbits.xensource.com Git - libvirt.git/commit
hypervisor: Revisit Coverity issues regarding cpumap
authorJohn Ferlan <jferlan@redhat.com>
Wed, 30 Jan 2013 18:09:13 +0000 (13:09 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Feb 2013 14:50:11 +0000 (09:50 -0500)
commitc059cdeaf32fd605e44a5fc1017746f67cb625ec
treeb4b0db671bc60cf1d9c464dbf7bb97db53297fb5
parentcbdf3b7c97b80323e6d9495f1ce710e401975f72
hypervisor: Revisit Coverity issues regarding cpumap

Turns out the issue regarding ptr_arith and sign_exension weren't false
positives. When shifting an 'unsigned char' as a target, it gets promoted
to an 'int'; however, that 'int' cannot be shifted 32 bits which was how
the algorithm was written. For the ptr_arith rather than index into the
cpumap, change the to address as necessary and assign directly.
src/xen/xen_hypervisor.c