Update keys.c

The text_buffer_size is increased from 16K to 32K, was the culprit of the crash or freeze on Erista consoles.

Thanks to @THZoria @Shadow256 @Muxi @UrHereNow and the guys on GBATemp for all the testing and work finding this little bugger
This commit is contained in:
impeeza
2025-05-07 10:16:46 -05:00
committed by GitHub
parent f8fbe86d1d
commit 3a58fdc95b

View File

@@ -572,7 +572,7 @@ static void _save_keys_to_sd(key_storage_t *keys, titlekey_buffer_t *titlekey_bu
return;
}
u32 text_buffer_size = MAX(_titlekey_count * sizeof(titlekey_text_buffer_t) + 1, SZ_16K);
u32 text_buffer_size = MAX(_titlekey_count * sizeof(titlekey_text_buffer_t) + 1, SZ_32K);
char *text_buffer = (char *)calloc(1, text_buffer_size);
SAVE_KEY(aes_kek_generation_source);