mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-03 05:12:34 +00:00
fix message length in msg_read_tiny
This commit is contained in:
parent
cb39ab7b6d
commit
a2eb43b057
@ -370,7 +370,7 @@ void msg_read_tiny(uint8_t *buf, int len)
|
||||
}
|
||||
|
||||
const pb_field_t *fields = 0;
|
||||
pb_istream_t stream = pb_istream_from_buffer(buf + 9, len - 9);
|
||||
pb_istream_t stream = pb_istream_from_buffer(buf + 9, msg_size);
|
||||
|
||||
switch (msg_id) {
|
||||
case MessageType_MessageType_PinMatrixAck:
|
||||
|
Loading…
Reference in New Issue
Block a user