From 65e67b604d9a1ff00e0688fc08fdd5468df1dcbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Thu, 10 Apr 2025 12:48:46 +0200 Subject: [PATCH] fw: Check NULL pointer in main.c --- hw/application_fpga/fw/tk1/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/application_fpga/fw/tk1/main.c b/hw/application_fpga/fw/tk1/main.c index 74538e3..d6a460a 100644 --- a/hw/application_fpga/fw/tk1/main.c +++ b/hw/application_fpga/fw/tk1/main.c @@ -440,6 +440,8 @@ static int compute_app_digest(uint8_t *digest) static enum state start_where(struct context *ctx) { + assert(ctx != NULL); + // Where do we start? Read resetinfo 'startfrom' switch (resetinfo->type) { case START_DEFAULT: