Skip to content

Commit

Permalink
[summary] finish parsing before displaying too long warning screen
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Sep 19, 2024
1 parent f510cb5 commit e70030b
Show file tree
Hide file tree
Showing 355 changed files with 9 additions and 17 deletions.
9 changes: 6 additions & 3 deletions app/src/apdu_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ static void handle_data_apdu(command_t *cmd);
static void handle_data_apdu_clear(command_t *cmd);
static void handle_data_apdu_blind(void);
#ifdef HAVE_BAGL
static void pass_from_clear_to_summary(void);
static void init_too_many_screens_stream(void);
static void init_summary_stream(void);
#endif
Expand Down Expand Up @@ -257,7 +258,7 @@ refill_blo_im_full(void)

if ((N_settings.blindsign_status == ST_BLINDSIGN_LARGE_TX)
&& (SCREEN_DISPLAYED >= NB_MAX_SCREEN_ALLOWED)) {
init_too_many_screens_stream();
pass_from_clear_to_summary();
TZ_SUCCEED();
} else {
SCREEN_DISPLAYED++;
Expand Down Expand Up @@ -319,7 +320,7 @@ refill_blo_done(void)

#ifdef HAVE_BAGL
if (global.step == ST_SUMMARY_SIGN) {
TZ_CHECK(init_summary_stream());
TZ_CHECK(init_too_many_screens_stream());
TZ_SUCCEED();
}

Expand Down Expand Up @@ -602,7 +603,7 @@ too_many_screens_stream_cb(tz_ui_cb_type_t cb_type)

// clang-format off
switch (cb_type) {
case TZ_UI_STREAM_CB_VALIDATE: TZ_CHECK(pass_from_clear_to_summary()); break;
case TZ_UI_STREAM_CB_VALIDATE: TZ_CHECK(init_summary_stream()); break;
case TZ_UI_STREAM_CB_REJECT: send_reject(EXC_REJECT); break;
default: TZ_FAIL(EXC_UNKNOWN); break;
}
Expand Down Expand Up @@ -630,6 +631,8 @@ init_too_many_screens_stream(void)
TZ_UI_STREAM_CB_REJECT);

tz_ui_stream_close();

tz_ui_stream();
}
#endif

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Loading

0 comments on commit e70030b

Please sign in to comment.