mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-01-22 08:36:32 +01:00
core: Fix telemetry ID personalization array size
- The personalization array in GenerateTelemetryId() was too small (18 bytes) for the string "citron Telemetry ID" which requires 20 bytes including the null terminator - Increased the array size to 20 to properly accommodate the full string
This commit is contained in:
parent
b3facaa6bb
commit
c972c5129d
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ static u64 GenerateTelemetryId() {
|
|||
mbedtls_entropy_context entropy;
|
||||
mbedtls_entropy_init(&entropy);
|
||||
mbedtls_ctr_drbg_context ctr_drbg;
|
||||
static constexpr std::array<char, 18> personalization{{"citron Telemetry ID"}};
|
||||
static constexpr std::array<char, 20> personalization{{"citron Telemetry ID"}};
|
||||
|
||||
mbedtls_ctr_drbg_init(&ctr_drbg);
|
||||
ASSERT(mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy,
|
||||
|
|
Loading…
Reference in a new issue