Skip to content

Commit 771371d

Browse files
Merge pull request #660 from LedgerHQ/fix/apa/eip191_regression
[hotfix] EIP-191 messages regression
2 parents 4103eb7 + 64758c8 commit 771371d

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [1.12.1](https://github.com/ledgerhq/app-ethereum/compare/1.12.0...1.12.1) - 2024-10-02
9+
10+
### Fixed
11+
12+
- Review of EIP-191 messages getting stuck and not responding to APDUs
13+
814
## [1.12.0](https://github.com/ledgerhq/app-ethereum/compare/1.11.3...1.12.0) - 2024-09-27
915

1016
### Added

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ include ./makefile_conf/chain/$(CHAIN).mk
3737

3838
APPVERSION_M = 1
3939
APPVERSION_N = 12
40-
APPVERSION_P = 0
40+
APPVERSION_P = 1
4141
APPVERSION = $(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
4242

4343
# Application source files

src_features/signMessage/cmd_signMessage.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,13 @@ void skip_rest_of_message(void) {
311311
* The user has decided to see the next chunk of the message
312312
*/
313313
void continue_displaying_message(void) {
314+
uint16_t sw = APDU_RESPONSE_OK;
315+
314316
reset_ui_buffer();
315317
if (unprocessed_length() > 0) {
316-
feed_display();
318+
sw = feed_display();
319+
}
320+
if (sw != APDU_NO_RESPONSE) {
321+
io_seproxyhal_send_status(sw, 0, sw != APDU_RESPONSE_OK, sw != APDU_RESPONSE_OK);
317322
}
318323
}

0 commit comments

Comments
 (0)