Skip to content

Commit f460d2d

Browse files
Removed redundant bound-check in EIP-712 filtering code
1 parent 9f89a22 commit f460d2d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/features/sign_message_eip712/filtering.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,6 @@ bool filtering_discarded_path(const uint8_t *payload, uint8_t length) {
324324
}
325325
path = (char *) &payload[offset];
326326
offset += path_len;
327-
if (offset < path_len) {
328-
return false;
329-
}
330327
if (!matches_backup_path(path, path_len, &path_offset)) {
331328
return false;
332329
}

0 commit comments

Comments
 (0)