mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Fix allocation size for sector_decrypted_title_key to accommodate additional sectors
This commit is contained in:
@@ -2343,7 +2343,7 @@ int32_t aaruf_write_sector_tag(void *context, const uint64_t sector_address, con
|
||||
return AARUF_ERROR_INCORRECT_DATA_SIZE;
|
||||
}
|
||||
|
||||
if(ctx->sector_decrypted_title_key == NULL) ctx->sector_decrypted_title_key = calloc(1, 4 * total_sectors);
|
||||
if(ctx->sector_decrypted_title_key == NULL) ctx->sector_decrypted_title_key = calloc(1, 5 * total_sectors);
|
||||
|
||||
if(ctx->sector_decrypted_title_key == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user