/// Updates the sizes and the hash without any validation.
-static lzma_ret
+static void
hash_append(lzma_index_hash_info *info, lzma_vli unpadded_size,
lzma_vli uncompressed_size)
{
lzma_check_update(&info->check, LZMA_CHECK_BEST,
(const uint8_t *)(sizes), sizeof(sizes));
- return LZMA_OK;
+ return;
}
return LZMA_PROG_ERROR;
// Update the hash.
- return_if_error(hash_append(&index_hash->blocks,
- unpadded_size, uncompressed_size));
+ hash_append(&index_hash->blocks, unpadded_size, uncompressed_size);
// Validate the properties of *info are still in allowed limits.
if (index_hash->blocks.blocks_size > LZMA_VLI_MAX
index_hash->sequence = SEQ_UNCOMPRESSED;
} else {
// Update the hash.
- return_if_error(hash_append(&index_hash->records,
+ hash_append(&index_hash->records,
index_hash->unpadded_size,
- index_hash->uncompressed_size));
+ index_hash->uncompressed_size);
// Verify that we don't go over the known sizes. Note
// that this validation is simpler than the one used