From 1297fdde1fcbb27803346f18bae1a38c2bb201ae Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Sun, 10 May 2026 05:38:55 +0300 Subject: [PATCH] Fix: vector overrun in GPU stats --- Core/Debugger/WebSocket/GPUStatsSubscriber.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Debugger/WebSocket/GPUStatsSubscriber.cpp b/Core/Debugger/WebSocket/GPUStatsSubscriber.cpp index 447fac2178..6c17842c81 100644 --- a/Core/Debugger/WebSocket/GPUStatsSubscriber.cpp +++ b/Core/Debugger/WebSocket/GPUStatsSubscriber.cpp @@ -129,8 +129,8 @@ void WebSocketGPUStatsState::FlipListener() { stats.frameTimes.resize(valid); stats.sleepTimes.resize(valid); if (valid > 0) { - memcpy(&stats.frameTimes[0], history, sizeof(double) * valid); - memcpy(&stats.sleepTimes[0], sleepHistory, sizeof(double) * valid); + memcpy(&stats.frameTimes[0], history, sizeof(float) * valid); + memcpy(&stats.sleepTimes[0], sleepHistory, sizeof(float) * valid); } sendNext_ = false;