Re: [PATCH] target/arm/tcg: fix potential integer overflow in iwmmxt_macuw()

2024-12-13 Thread Peter Maydell
On Thu, 12 Dec 2024 at 14:28, wrote: > > From: Denis Rastyogin > > The function iwmmxt_macuw() could potentially cause an integer > overflow when summing up four 32-bit multiplications. > This occurs because the intermediate results may exceed the 32-bit > range before being cast to uint64_t. The

Re: [PATCH] target/arm/tcg: fix potential integer overflow in iwmmxt_macuw()

2024-12-12 Thread Richard Henderson
On 12/12/24 08:27, ger...@altlinux.org wrote: From: Denis Rastyogin The function iwmmxt_macuw() could potentially cause an integer overflow when summing up four 32-bit multiplications. This occurs because the intermediate results may exceed the 32-bit range before being cast to uint64_t. The fi

[PATCH] target/arm/tcg: fix potential integer overflow in iwmmxt_macuw()

2024-12-12 Thread gerben
From: Denis Rastyogin The function iwmmxt_macuw() could potentially cause an integer overflow when summing up four 32-bit multiplications. This occurs because the intermediate results may exceed the 32-bit range before being cast to uint64_t. The fix ensures each multiplication is explicitly cast