diff options
author | Zephyron <zephyron@citron-emu.org> | 2024-12-31 17:33:34 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2024-12-31 17:33:34 +1000 |
commit | c972c5129df609f13f873b94f4ae24ba20521203 (patch) | |
tree | 803c9dd3df52fd099c52fb3226837ae7beca1cff /src/core | |
parent | b3facaa6bb30cdc39f2b7d632fef1e3bfeee7785 (diff) |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/telemetry_session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index cc55915cb..e4248f44c 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -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, |