mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
device_ledger: fix buffer underflow on bad data from device
This commit is contained in:
parent
41e9cab4e1
commit
34de7bc267
1 changed files with 1 additions and 0 deletions
|
@ -304,6 +304,7 @@ namespace hw {
|
|||
SCARD_PCI_T0, this->buffer_send, this->length_send,
|
||||
NULL, this->buffer_recv, &this->length_recv);
|
||||
ASSERT_RV(rv);
|
||||
ASSERT_T0(this->length_recv >= 2);
|
||||
ASSERT_T0(this->length_recv <= BUFFER_RECV_SIZE);
|
||||
logRESP();
|
||||
|
||||
|
|
Loading…
Reference in a new issue