From 77e3a480a4d08a5980840fcd6e374cf2c1201cfd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 13 Aug 2022 19:37:34 +0200 Subject: [PATCH] Properly terminate CPU model string. --- public/client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index d95553cf..658f0b39 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -581,7 +581,7 @@ static const char* GetHostInfo() #if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 uint32_t regs[4]; - char cpuModel[4*4*3]; + char cpuModel[4*4*3+1] = {}; auto modelPtr = cpuModel; for( uint32_t i=0x80000002; i<0x80000005; ++i ) {