]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/arm: avoid integer overflow in next_page PC check
authorEmilio G. Cota <cota@braap.org>
Tue, 10 Apr 2018 15:09:52 +0000 (11:09 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (10:12 -0700)
commitbfe7ad5be77a6a8925a7ab1628452c8942222102
treec7d530eeee4dee001046971a67e0a032ad7a4343
parent56371527f3f8d33be651046700d72489f4df505f
target/arm: avoid integer overflow in next_page PC check

If the PC is in the last page of the address space, next_page_start
overflows to 0. Fix it.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/translate.c
target/arm/translate.h