|
| From: | Richard Henderson |
| Subject: | Re: [PATCH] target/hppa: Fix possible overflow in TLB size calculation |
| Date: | Fri, 10 Nov 2023 14:48:49 -0800 |
| User-agent: | Mozilla Thunderbird |
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 <peter.maydell@linaro.org> Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |