mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-23 10:01:58 +03:00
add temp fix since no proper fix exist at the moment
This commit is contained in:
parent
a57dbe446e
commit
75ece9b697
@ -66,9 +66,13 @@ bool iso14443_4_layer_decode_block(
|
||||
|
||||
bool ret = false;
|
||||
|
||||
// TODO: Fix properly! this is a very big kostyl na velosipede
|
||||
// (bit_buffer_copy_right are called to copy bigger buffer into smaller buffer causing crash on furi check) issue comes iso14443_4a_poller_send_block at line 109
|
||||
if(bit_buffer_get_size_bytes(output_data) < bit_buffer_get_size_bytes(output_data) - 1)
|
||||
return ret;
|
||||
|
||||
do {
|
||||
if(!bit_buffer_starts_with_byte(block_data, instance->pcb_prev)) break;
|
||||
// TODO: Fix crash
|
||||
bit_buffer_copy_right(output_data, block_data, 1);
|
||||
ret = true;
|
||||
} while(false);
|
||||
|
@ -58,7 +58,6 @@ void bit_buffer_copy_right(BitBuffer* buf, const BitBuffer* other, size_t start_
|
||||
furi_check(buf);
|
||||
furi_check(other);
|
||||
furi_check(bit_buffer_get_size_bytes(other) > start_index);
|
||||
// TODO: Fix crash
|
||||
furi_check(buf->capacity_bytes >= bit_buffer_get_size_bytes(other) - start_index);
|
||||
|
||||
memcpy(buf->data, other->data + start_index, bit_buffer_get_size_bytes(other) - start_index);
|
||||
|
Loading…
Reference in New Issue
Block a user