diff --git a/app/Makefile.version b/app/Makefile.version index 979a4dde..2f6ef07a 100644 --- a/app/Makefile.version +++ b/app/Makefile.version @@ -3,4 +3,4 @@ APPVERSION_M=2 # This is the `spec_version` field of `Runtime` APPVERSION_N=35 # This is the patch version of this release -APPVERSION_P=26 +APPVERSION_P=27 diff --git a/app/src/tx_validate.c b/app/src/tx_validate.c index 057530d3..c3d30c19 100644 --- a/app/src/tx_validate.c +++ b/app/src/tx_validate.c @@ -51,15 +51,14 @@ parser_error_t contains_whitespace(parsed_json_t *json) { } } start = json->tokens[i].end + 1; + if (start < 0) { + return parser_json_unexpected_error; + } } else { return parser_ok; } } - if (start < 0) { - return parser_json_unexpected_error; - } - while (start < last_element_index && json->buffer[start] != '\0') { if (is_space(json->buffer[start])) { return parser_json_contains_whitespace; diff --git a/deps/ledger-zxlib b/deps/ledger-zxlib index 194acadb..01a7971f 160000 --- a/deps/ledger-zxlib +++ b/deps/ledger-zxlib @@ -1 +1 @@ -Subproject commit 194acadb2b092e728ec8af8c2e803a4dda0c7e9e +Subproject commit 01a7971f97792344c3f97a1034cba4d258b1ca47 diff --git a/tests_zemu/package.json b/tests_zemu/package.json index 92640893..95283c57 100644 --- a/tests_zemu/package.json +++ b/tests_zemu/package.json @@ -19,17 +19,17 @@ }, "dependencies": { "@zondax/ledger-cosmos-js": "^3.0.3", - "@zondax/zemu": "^0.50.2" + "@zondax/zemu": "^0.52.0" }, "devDependencies": { "@types/jest": "^29.5.12", "@types/ledgerhq__hw-transport": "^4.21.8", - "@typescript-eslint/eslint-plugin": "^7.17.0", - "@typescript-eslint/parser": "^7.17.0", + "@typescript-eslint/eslint-plugin": "^8.16.0", + "@typescript-eslint/parser": "^8.16.0", "bech32": "^2.0.0", "blakejs": "^1.1.1", "crypto-js": "4.2.0", - "eslint": "^9.7.0", + "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^28.6.0", @@ -39,10 +39,10 @@ "js-sha3": "0.9.3", "jssha": "^3.2.0", "keccak256": "^1.0.6", - "prettier": "^3.3.3", + "prettier": "^3.4.1", "secp256k1": "^5.0.0", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.7.2" } } diff --git a/tests_zemu/snapshots/fl-mainmenu/00004.png b/tests_zemu/snapshots/fl-mainmenu/00004.png index 5f1eb6d5..399486e1 100644 Binary files a/tests_zemu/snapshots/fl-mainmenu/00004.png and b/tests_zemu/snapshots/fl-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00004.png b/tests_zemu/snapshots/s-mainmenu/00004.png index b7439f28..df1adf68 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00004.png and b/tests_zemu/snapshots/s-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00010.png b/tests_zemu/snapshots/s-mainmenu/00010.png index b7439f28..df1adf68 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00010.png and b/tests_zemu/snapshots/s-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00004.png b/tests_zemu/snapshots/sp-mainmenu/00004.png index 3d07794d..4092d123 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00004.png and b/tests_zemu/snapshots/sp-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00010.png b/tests_zemu/snapshots/sp-mainmenu/00010.png index 3d07794d..4092d123 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00010.png and b/tests_zemu/snapshots/sp-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00004.png b/tests_zemu/snapshots/st-mainmenu/00004.png index 6ced94ac..8620e024 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00004.png and b/tests_zemu/snapshots/st-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00004.png b/tests_zemu/snapshots/x-mainmenu/00004.png index 3d07794d..4092d123 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00004.png and b/tests_zemu/snapshots/x-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00010.png b/tests_zemu/snapshots/x-mainmenu/00010.png index 3d07794d..4092d123 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00010.png and b/tests_zemu/snapshots/x-mainmenu/00010.png differ