From b1001f7062d5adeb917c8a3a21a90dba39b3e5bf Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 8 Oct 2025 19:21:50 +0100 Subject: [PATCH] Fix allocation size for sector_decrypted_title_key to accommodate additional sectors --- src/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write.c b/src/write.c index 1511b0c..d3e741e 100644 --- a/src/write.c +++ b/src/write.c @@ -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) {