Skip to content

Commit fcd1af8

Browse files
Donjon-CerberusCerberus Merlin
andauthored
fix: Blind-signing gate is bypassed for single-byte calldata 0x00 transactions (#983)
Co-authored-by: Cerberus Merlin <merlin@cerberus.security>
1 parent b9b3a4b commit fcd1af8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/features/sign_tx/eth_ustream.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,6 @@ static bool process_data(txContext_t *context) {
315315
if (context->currentFieldPos < context->currentFieldLength) {
316316
uint32_t copySize =
317317
MIN(context->commandLength, context->currentFieldLength - context->currentFieldPos);
318-
// If there is no data, set dataPresent to false.
319-
if (copySize == 1 && *context->workBuffer == 0x00) {
320-
context->content->dataPresent = false;
321-
}
322318

323319
if ((context->currentFieldPos == 0) && (copySize >= 4)) {
324320
// Consider the 4 1st bytes are the selector

0 commit comments

Comments
 (0)