From f3793fd8c4288e977aa0b8beec7b04ea05074d9d Mon Sep 17 00:00:00 2001 From: cepetr Date: Mon, 13 Jan 2025 19:08:16 +0100 Subject: [PATCH] fix(core): panic on invalid syscall number [no changelog] --- core/embed/sys/syscall/stm32/syscall_dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/sys/syscall/stm32/syscall_dispatch.c b/core/embed/sys/syscall/stm32/syscall_dispatch.c index e2bc1a6fba..62c21d6542 100644 --- a/core/embed/sys/syscall/stm32/syscall_dispatch.c +++ b/core/embed/sys/syscall/stm32/syscall_dispatch.c @@ -674,7 +674,7 @@ __attribute((no_stack_protector)) void syscall_handler(uint32_t *args, } break; default: - args[0] = 0xffffffff; + system_exit_fatal("Invalid syscall", __FILE__, __LINE__); break; } }