mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
NFC: Fix read crash with unexpectedly large MFC AUTH(0) response --nobuild
This was noticeable with Chameleon Ultra NTAG emulation
This commit is contained in:
@@ -45,7 +45,9 @@
|
||||
- CLI: Fix long delay with quick connect/disconnect, qFlipper should connect faster as expected again (by @WillyJL)
|
||||
- Bad KB: Fix modifier keys with HOLD/RELEASE commands (by @WillyJL)
|
||||
- Desktop: Fix lock screen hang (#438 by @aaronjamt)
|
||||
- NFC: Fix incorrect Saflok year formula (#433 by @Eltrick)
|
||||
- NFC:
|
||||
- Fix incorrect Saflok year formula (#433 by @Eltrick)
|
||||
- Fix read crash with unexpectedly large MFC AUTH(0) response, eg with Chameleon Ultra NTAG emualtion (by @WillyJL)
|
||||
- FBT: Fix redundant decl for apps using an icon disabled in API (by @WillyJL)
|
||||
|
||||
### Removed:
|
||||
|
||||
@@ -42,7 +42,13 @@ static Iso14443_3aError iso14443_3a_poller_standard_frame_exchange(
|
||||
break;
|
||||
}
|
||||
|
||||
if(bit_buffer_get_capacity_bytes(rx_buffer) <
|
||||
bit_buffer_get_size_bytes(instance->rx_buffer)) {
|
||||
ret = Iso14443_3aErrorBufferOverflow;
|
||||
break;
|
||||
}
|
||||
bit_buffer_copy(rx_buffer, instance->rx_buffer);
|
||||
|
||||
if(!iso14443_crc_check(Iso14443CrcTypeA, instance->rx_buffer)) {
|
||||
ret = Iso14443_3aErrorWrongCrc;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user