From 6bcdbd0e814d7b112232c779de83b95c4ef2bd3f Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Mon, 2 Nov 2026 22:38:34 +0000 Subject: [PATCH] Initialize RAM self-test alias storage --- panda/board/drivers/self_test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/board/drivers/self_test.h b/panda/board/drivers/self_test.h index 5402ff3680..61e5b9aee2 100644 --- a/panda/board/drivers/self_test.h +++ b/panda/board/drivers/self_test.h @@ -132,8 +132,8 @@ static bool ram_test_block(uint32_t addr, uint32_t words, uint32_t start, uint32 // outside the tested regions, copies are read back instead __attribute__((section(".sram12"))) static volatile uint32_t ram_test_backup[RAM_TEST_BLOCK_WORDS]; volatile uint32_t *p = (uint32_t *)addr; - volatile uint32_t *alias[RAM_TEST_ALIASES]; - uint32_t alias_val[RAM_TEST_ALIASES]; + volatile uint32_t *alias[RAM_TEST_ALIASES] = {NULL}; + uint32_t alias_val[RAM_TEST_ALIASES] = {0U}; uint8_t aliases = 0U; for (uint32_t bit = RAM_TEST_BLOCK_WORDS * 4U; (bit < (end - start)) && (aliases < RAM_TEST_ALIASES); bit <<= 1U) { uint32_t a = addr ^ bit;