diff --git a/src/ui/nbgl_display_address.c b/src/ui/nbgl_display_address.c index 351f8c8..decebab 100644 --- a/src/ui/nbgl_display_address.c +++ b/src/ui/nbgl_display_address.c @@ -46,7 +46,7 @@ #include "format.h" #include "../menu.h" -static char g_address[43]; +static char g_address[ECDSA_ADDRESS_LEN + 6]; static char g_bip32_path[60]; static nbgl_layoutTagValue_t pairs[1]; diff --git a/src/ui/nbgl_display_transaction.c b/src/ui/nbgl_display_transaction.c index 90c3297..905f7c1 100755 --- a/src/ui/nbgl_display_transaction.c +++ b/src/ui/nbgl_display_transaction.c @@ -50,7 +50,7 @@ // Buffer where the transaction amount string is written static char g_amount[30]; // Buffer where the transaction address string is written -static char g_address[43]; +static char g_address[ECDSA_ADDRESS_LEN + 6]; static nbgl_layoutTagValue_t pairs[2]; static nbgl_layoutTagValueList_t pairList; diff --git a/tests/requirements.txt b/tests/requirements.txt index 4e64402..9ed04a8 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -5,3 +5,4 @@ Jinja2==3.1.2 Flask==2.1.2 pysha3>=1.0.0,<2.0.0 secp256k1>=0.14.0 +Werkzeug==2.2.2 \ No newline at end of file diff --git a/tests/snapshots/stax/test_get_public_key_confirm_accepted/00001.png b/tests/snapshots/stax/test_get_public_key_confirm_accepted/00001.png index 572e2bd..13b1243 100644 Binary files a/tests/snapshots/stax/test_get_public_key_confirm_accepted/00001.png and b/tests/snapshots/stax/test_get_public_key_confirm_accepted/00001.png differ diff --git a/tests/snapshots/stax/test_get_public_key_confirm_accepted/00002.png b/tests/snapshots/stax/test_get_public_key_confirm_accepted/00002.png index e18f4d5..09b082d 100644 Binary files a/tests/snapshots/stax/test_get_public_key_confirm_accepted/00002.png and b/tests/snapshots/stax/test_get_public_key_confirm_accepted/00002.png differ diff --git a/tests/snapshots/stax/test_get_public_key_confirm_accepted/00003.png b/tests/snapshots/stax/test_get_public_key_confirm_accepted/00003.png index 572e2bd..13b1243 100644 Binary files a/tests/snapshots/stax/test_get_public_key_confirm_accepted/00003.png and b/tests/snapshots/stax/test_get_public_key_confirm_accepted/00003.png differ diff --git a/tests/snapshots/stax/test_get_public_key_confirm_refused/part1/00001.png b/tests/snapshots/stax/test_get_public_key_confirm_refused/part1/00001.png index 572e2bd..13b1243 100644 Binary files a/tests/snapshots/stax/test_get_public_key_confirm_refused/part1/00001.png and b/tests/snapshots/stax/test_get_public_key_confirm_refused/part1/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_max/00001.png b/tests/snapshots/stax/test_sign_tx_max/00001.png index 8d5001c..53b6011 100644 Binary files a/tests/snapshots/stax/test_sign_tx_max/00001.png and b/tests/snapshots/stax/test_sign_tx_max/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_p2sh/00001.png b/tests/snapshots/stax/test_sign_tx_p2sh/00001.png index 60b0998..0fa48cf 100644 Binary files a/tests/snapshots/stax/test_sign_tx_p2sh/00001.png and b/tests/snapshots/stax/test_sign_tx_p2sh/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_refused/part1/00001.png b/tests/snapshots/stax/test_sign_tx_refused/part1/00001.png index 8c2dda9..24e633a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_refused/part1/00001.png and b/tests/snapshots/stax/test_sign_tx_refused/part1/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_refused/part2/00001.png b/tests/snapshots/stax/test_sign_tx_refused/part2/00001.png index 8c2dda9..24e633a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_refused/part2/00001.png and b/tests/snapshots/stax/test_sign_tx_refused/part2/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple/00001.png b/tests/snapshots/stax/test_sign_tx_simple/00001.png index 8c2dda9..24e633a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple/00001.png and b/tests/snapshots/stax/test_sign_tx_simple/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_change_idx1/00001.png b/tests/snapshots/stax/test_sign_tx_simple_change_idx1/00001.png index b6c02f1..ab0c75e 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_change_idx1/00001.png and b/tests/snapshots/stax/test_sign_tx_simple_change_idx1/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_ecdsa/00001.png b/tests/snapshots/stax/test_sign_tx_simple_ecdsa/00001.png index 7cb1f61..5bad9b2 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_ecdsa/00001.png and b/tests/snapshots/stax/test_sign_tx_simple_ecdsa/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_sendint/00001.png b/tests/snapshots/stax/test_sign_tx_simple_sendint/00001.png index 1e78a16..4486134 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_sendint/00001.png and b/tests/snapshots/stax/test_sign_tx_simple_sendint/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_sendmaxu64/00001.png b/tests/snapshots/stax/test_sign_tx_simple_sendmaxu64/00001.png index 2be07d9..e97fbf5 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_sendmaxu64/00001.png and b/tests/snapshots/stax/test_sign_tx_simple_sendmaxu64/00001.png differ diff --git a/tests/snapshots/stax/test_sign_tx_with_change/00001.png b/tests/snapshots/stax/test_sign_tx_with_change/00001.png index 2f1cb10..8b4ab2b 100644 Binary files a/tests/snapshots/stax/test_sign_tx_with_change/00001.png and b/tests/snapshots/stax/test_sign_tx_with_change/00001.png differ