From c972c5129df609f13f873b94f4ae24ba20521203 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Tue, 31 Dec 2024 17:33:34 +1000 Subject: [PATCH] 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 --- src/core/telemetry_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 personalization{{"citron Telemetry ID"}}; + static constexpr std::array personalization{{"citron Telemetry ID"}}; mbedtls_ctr_drbg_init(&ctr_drbg); ASSERT(mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy,