From e2722dc83791302b724422ede0ae4192504ab2cd Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 12 Oct 2026 23:31:33 -0500 Subject: [PATCH] Fix uninitialized stack data in the periodic ping payload --- src/ControlStream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ControlStream.c b/src/ControlStream.c index 2b5182e..82084c3 100644 --- a/src/ControlStream.c +++ b/src/ControlStream.c @@ -1392,7 +1392,7 @@ static void lossStatsThreadFunc(void* context) { char periodicPingPayload[8]; BbInitializeWrappedBuffer(&byteBuffer, periodicPingPayload, 0, sizeof(periodicPingPayload), BYTE_ORDER_LITTLE); - BbPut16(&byteBuffer, 4); // Length of payload + BbPut32(&byteBuffer, 4); // Length of payload BbPut32(&byteBuffer, 0); // Timestamp? while (!PltIsThreadInterrupted(&lossStatsThread)) {