Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: x86: fix shift out of bounds reported by UBSAN
Since we know that e >= s, we can reassociate the left shift, changing the shifted number from 1 to 2 in exchange for decreasing the right hand side by 1. Reported-by: [email protected] Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information