Re: [PATCH] target/hppa: Fix possible overflow in TLB size calculation

2023-11-10 Thread Richard Henderson
On 11/10/23 11:35, Helge Deller wrote: Coverty found that the shift of TARGET_PAGE_SIZE (32-bit type) might overflow. Fix it by casting TARGET_PAGE_SIZE to a 64-bit type before doing the shift (CID 1523902 and CID 1523908). Reported-by: Peter Maydell Signed-off-by: Helge Deller Reviewed-by:

[PATCH] target/hppa: Fix possible overflow in TLB size calculation

2023-11-10 Thread Helge Deller
Coverty found that the shift of TARGET_PAGE_SIZE (32-bit type) might overflow. Fix it by casting TARGET_PAGE_SIZE to a 64-bit type before doing the shift (CID 1523902 and CID 1523908). Reported-by: Peter Maydell Signed-off-by: Helge Deller diff --git a/target/hppa/mem_helper.c b/target/hppa/me