mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Fix uninitialized stack data in the periodic ping payload
This commit is contained in:
1 parent
f900dd4767
commit
e2722dc837
1 file changed
+1
-1
+1
-1
@@ -1392,7 +1392,7 @@ static void lossStatsThreadFunc(void* context) {
|
|||||||
char periodicPingPayload[8];
|
char periodicPingPayload[8];
|
||||||
|
|
||||||
BbInitializeWrappedBuffer(&byteBuffer, periodicPingPayload, 0, sizeof(periodicPingPayload), BYTE_ORDER_LITTLE);
|
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?
|
BbPut32(&byteBuffer, 0); // Timestamp?
|
||||||
|
|
||||||
while (!PltIsThreadInterrupted(&lossStatsThread)) {
|
while (!PltIsThreadInterrupted(&lossStatsThread)) {
|
||||||
|
|||||||
Reference in new issue
Block a user