Re: [PATCH] target/mips: fix possible int overflow

2025-01-24 Thread Peter Maydell
On Fri, 24 Jan 2025 at 12:27, wrote: > > From: Denis Rastyogin > > Fix possible overflow in 1 << (DF_BITS(df) - 2) when DF_BITS(df) > is 64 by using a 64-bit integer for the shift operation. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Reported-by: Dmitriy Fedin > Si

[PATCH] target/mips: fix possible int overflow

2025-01-24 Thread gerben
From: Denis Rastyogin Fix possible overflow in 1 << (DF_BITS(df) - 2) when DF_BITS(df) is 64 by using a 64-bit integer for the shift operation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Reported-by: Dmitriy Fedin Signed-off-by: Denis Rastyogin --- target/mips/tcg/msa