1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

Revert "add temp fix since no proper fix exist at the moment"

This reverts commit 75ece9b697.
This commit is contained in:
MX
2024-06-05 22:18:09 +03:00
parent 303313669a
commit 1db05ed2c6
2 changed files with 2 additions and 5 deletions

View File

@@ -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);