From cbcfbca8954f38074a6ee5e761daf9a8dcfda4c2 Mon Sep 17 00:00:00 2001 From: Halo-Michael Date: Thu, 3 Dec 2020 21:05:00 +0800 Subject: [PATCH] sz must be longer than target string --- Common/ArmCPUDetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/ArmCPUDetect.cpp b/Common/ArmCPUDetect.cpp index e2172003cd..0dd85591cc 100644 --- a/Common/ArmCPUDetect.cpp +++ b/Common/ArmCPUDetect.cpp @@ -251,7 +251,7 @@ void CPUInfo::Detect() isVFP4 = true; #endif #endif // PPSSPP_PLATFORM(IOS) - size_t sz; + size_t sz = 0x41; // char brand_string[0x41] if (sysctlbyname("machdep.cpu.brand_string", brand_string, &sz, nullptr, 0) != 0) { strcpy(brand_string, "Unknown"); }