From 6b512fceb4210d5cf166912ef72c90cd29caec67 Mon Sep 17 00:00:00 2001 From: Nicholas Piggin Date: Mon, 11 Nov 2019 15:44:40 +1000 Subject: [PATCH] slw: slw_reinit fix array overrun The slw patch saving array is too small, which results in slw_reinit overwriting 32 bytes beyond the end of it. The size is increased to 0x100, which is the architecture interrupt vector size. Signed-off-by: Nicholas Piggin Signed-off-by: Oliver O'Halloran --- hw/slw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/slw.c b/hw/slw.c index f1d0298b3fd1..cb27f2497211 100644 --- a/hw/slw.c +++ b/hw/slw.c @@ -28,7 +28,7 @@ #include #include -#define MAX_RESET_PATCH_SIZE 64 +#define MAX_RESET_PATCH_SIZE 0x100 static uint32_t slw_saved_reset[MAX_RESET_PATCH_SIZE];