Skip to content

Commit

Permalink
Merge pull request #27 from Zondax/extra_check
Browse files Browse the repository at this point in the history
Extra pages check
  • Loading branch information
ftheirs authored Sep 25, 2023
2 parents f201ec1 + e7a2821 commit c12bdab
Show file tree
Hide file tree
Showing 89 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=2
# This is the `spec_version` field of `Runtime`
APPVERSION_N=1
# This is the patch version of this release
APPVERSION_P=9
APPVERSION_P=10
3 changes: 2 additions & 1 deletion app/src/parser_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,8 @@ static parser_error_t _readTxApplication(parser_context_t *c, parser_tx_t *v)
DISPLAY_ITEM(IDX_CLEAR, 1, tx_num_items)
}

if (application->cprog_len + application->aprog_len > PAGE_LEN *(1+application->extra_pages)){
if (application->id == 0 && application->cprog_len + application->aprog_len > PAGE_LEN *(1+application->extra_pages)){
// ExtraPages needs to be checked only on application creation
return parser_program_fields_too_long;
}

Expand Down
2 changes: 1 addition & 1 deletion deps/nanosplus-secure-sdk
2 changes: 1 addition & 1 deletion deps/nanox-secure-sdk
Submodule nanox-secure-sdk updated 347 files
2 changes: 1 addition & 1 deletion deps/stax-secure-sdk
Submodule stax-secure-sdk updated 347 files
16 changes: 8 additions & 8 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@
},
"dependencies": {
"@zondax/ledger-algorand": "../js",
"@zondax/zemu": "^0.43.1"
"@zondax/zemu": "^0.44.2"
},
"devDependencies": {
"@types/jest": "^29.4.0",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"blakejs": "^1.1.1",
"crypto-js": "4.1.1",
"ed25519-supercop": "^2.0.1",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.0.0",
"jest": "29.5.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "29.7.0",
"jssha": "^3.2.0",
"prettier": "^2.4.1",
"prettier": "^3.0.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.4.3"
"typescript": "^5.2.2"
}
}
Binary file modified tests_zemu/snapshots/s-mainmenu/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address_reject/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address_reject/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address_reject/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-show_address_reject/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-sign_application/00008.png
Binary file modified tests_zemu/snapshots/st-sign_application/00009.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00000.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00001.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00002.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00003.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00004.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00005.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00006.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00007.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00008.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00009.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00010.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00011.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00012.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00013.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00014.png
Binary file modified tests_zemu/snapshots/st-sign_application_big/00015.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00000.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00001.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00002.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00003.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00004.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00005.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00006.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00007.png
Binary file modified tests_zemu/snapshots/st-sign_asset_config/00008.png
Binary file modified tests_zemu/snapshots/st-sign_asset_freeze/00000.png
Binary file modified tests_zemu/snapshots/st-sign_asset_freeze/00001.png
Binary file modified tests_zemu/snapshots/st-sign_asset_freeze/00002.png
Binary file modified tests_zemu/snapshots/st-sign_asset_freeze/00003.png
Binary file modified tests_zemu/snapshots/st-sign_asset_freeze/00004.png
Binary file modified tests_zemu/snapshots/st-sign_asset_freeze/00005.png
Binary file modified tests_zemu/snapshots/st-sign_asset_transfer/00000.png
Binary file modified tests_zemu/snapshots/st-sign_asset_transfer/00001.png
Binary file modified tests_zemu/snapshots/st-sign_asset_transfer/00002.png
Binary file modified tests_zemu/snapshots/st-sign_asset_transfer/00003.png
Binary file modified tests_zemu/snapshots/st-sign_asset_transfer/00004.png
Binary file modified tests_zemu/snapshots/st-sign_asset_transfer/00005.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00000.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00001.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00002.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00003.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00004.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00005.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00006.png
Binary file modified tests_zemu/snapshots/st-sign_keyreg/00007.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00000.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00001.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00002.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00003.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00004.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00005.png
Binary file modified tests_zemu/snapshots/st-sign_payment/00006.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00005.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00011.png

0 comments on commit c12bdab

Please sign in to comment.