From 316b01df9f24d6e72dfe1a59f93fb91cd0886598 Mon Sep 17 00:00:00 2001 From: cepetr Date: Thu, 19 Dec 2024 14:20:32 +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 076acde171..7a8a427538 100644 --- a/core/embed/sys/syscall/stm32/syscall_dispatch.c +++ b/core/embed/sys/syscall/stm32/syscall_dispatch.c @@ -669,7 +669,7 @@ __attribute((no_stack_protector)) void syscall_handler(uint32_t *args, } break; default: - args[0] = 0xffffffff; + system_exit_fatal("Invalid syscall", __FILE__, __LINE__); break; } }