Re: [Qemu-devel] [PATCH] target-ppc: fix left shift overflow in hpte_page_shift

2016-07-17 Thread David Gibson
On Fri, Jul 15, 2016 at 05:22:10PM +0200, Paolo Bonzini wrote: > ps->pte_enc is a 32-bit value, which is shifted left and then compared > to a 64-bit value. It needs a cast before the shift. > > Reported by Coverity. > > Signed-off-by: Paolo Bonzini Applied to ppc-for-2.7, thanks. > --- > ta

[Qemu-devel] [PATCH] target-ppc: fix left shift overflow in hpte_page_shift

2016-07-15 Thread Paolo Bonzini
ps->pte_enc is a 32-bit value, which is shifted left and then compared to a 64-bit value. It needs a cast before the shift. Reported by Coverity. Signed-off-by: Paolo Bonzini --- target-ppc/mmu-hash64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/mmu-hash64.c