Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Add bss reset
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Apr 28, 2023
1 parent 5d547bd commit 8a0a58d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/swap/handle_swap_sign_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "swap_lib_calls.h"
#include "ux.h"
#include "globals.h"
#include "os.h"

bool copy_transaction_parameters(const create_transaction_parameters_t* params) {
// first copy parameters to stack, and then to global data.
Expand All @@ -22,6 +23,7 @@ bool copy_transaction_parameters(const create_transaction_parameters_t* params)
return false;
}

os_explicit_zero_BSS_segment();
memcpy(&swap_values, &stack_data, sizeof(stack_data));

return true;
Expand Down

0 comments on commit 8a0a58d

Please sign in to comment.