Skip to content

Commit

Permalink
qrmode: fix assert when scanning Specter message QR missing bip32 path
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDriver committed Apr 9, 2024
1 parent 1249ddd commit 7ea1603
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion main/wallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ bool wallet_bip32_path_from_str(
const char* pathstr, const size_t str_len, uint32_t* path, const size_t path_len, size_t* written)
{
JADE_ASSERT(pathstr);
JADE_ASSERT(str_len);
JADE_ASSERT(path);
JADE_ASSERT(path_len);
JADE_INIT_OUT_SIZE(written);
Expand Down
6 changes: 6 additions & 0 deletions test_data/msgfile_bad_empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"input": {
"filedata": "signmessage ascii:"
},
"expected_error": "Invalid bip32 path"
}
6 changes: 6 additions & 0 deletions test_data/msgfile_bad_path4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"input": {
"filedata": "signmessage ascii:path missing"
},
"expected_error": "Invalid bip32 path"
}

0 comments on commit 7ea1603

Please sign in to comment.