From a2596ef28de8465c9f00e670a3a13a42029d2b8c Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Wed, 25 Jun 2025 15:28:37 +0200 Subject: [PATCH] fix(core/bootloader): fix overflow wipe progress calculation [no changelog] --- core/embed/projects/bootloader/bootui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/projects/bootloader/bootui.c b/core/embed/projects/bootloader/bootui.c index 627fb9ae67..3b90dbbacf 100644 --- a/core/embed/projects/bootloader/bootui.c +++ b/core/embed/projects/bootloader/bootui.c @@ -147,7 +147,7 @@ confirm_result_t ui_screen_wipe_confirm(void) { return screen_wipe_confirm(); } void ui_screen_wipe(void) { screen_wipe_progress(0, true); } void ui_screen_wipe_progress(int pos, int len) { - screen_wipe_progress(1000 * pos / len, false); + screen_wipe_progress((int16_t)(1000 * (int64_t)pos / len), false); } // done UI