Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/inheritance_app/inheritance_decrypt_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static bool inheritance_get_encrypted_data(inheritance_query_t *query) {

if (false == query->decrypt.encrypted_data.has_chunk_payload ||
payload->chunk_index >= payload->total_chunks ||
size + chunk->size > total_size) {
size + chunk->size > INHERITANCE_PACKET_MAX_SIZE) {
SET_ERROR_TYPE(DECRYPTION_CHUNK_DATA_INVALID_ERROR);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/inheritance_app/inheritance_encrypt_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static bool inheritance_get_plain_data(inheritance_query_t *query) {

if (false == query->encrypt.plain_data.has_chunk_payload ||
payload->chunk_index >= payload->total_chunks ||
size + chunk->size > total_size) {
size + chunk->size > INHERITANCE_PACKET_MAX_SIZE) {
SET_ERROR_TYPE(ENCRYPTION_CHUNK_DATA_INVALID_ERROR);
return false;
}
Expand Down