Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Apr 23, 2024
1 parent 3269f75 commit c3b59a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/nfc/helpers/iso14443_4_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ bool iso14443_4_layer_decode_block(

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);
Expand Down
1 change: 1 addition & 0 deletions lib/toolbox/bit_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ 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);
Expand Down

0 comments on commit c3b59a9

Please sign in to comment.