File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src_features/signMessageEIP712 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,7 @@ e_eip712_nfs ui_712_next_field(void) {
177
177
handle_eip712_return_code (true);
178
178
state = EIP712_FIELD_INCOMING ;
179
179
// So that later when we append to them, we start from an empty string
180
- explicit_bzero (strings .tmp .tmp , sizeof (strings .tmp .tmp ));
181
- explicit_bzero (strings .tmp .tmp2 , sizeof (strings .tmp .tmp2 ));
180
+ explicit_bzero (& strings , sizeof (strings ));
182
181
}
183
182
}
184
183
return state ;
@@ -622,6 +621,7 @@ bool ui_712_init(void) {
622
621
if ((ui_ctx = MEM_ALLOC_AND_ALIGN_TYPE (* ui_ctx ))) {
623
622
explicit_bzero (ui_ctx , sizeof (* ui_ctx ));
624
623
ui_ctx -> filtering_mode = EIP712_FILTERING_BASIC ;
624
+ explicit_bzero (& strings , sizeof (strings ));
625
625
} else {
626
626
apdu_response_code = APDU_RESPONSE_INSUFFICIENT_MEMORY ;
627
627
}
You can’t perform that action at this time.
0 commit comments