CPU (Linux): don't segfault if we fail to find Vendor ID in lscpu

Fix #718
This commit is contained in:
李通洲 committed 2024-02-13 19:08:44 +08:00
1 parent da9c928286
commit 3a96ade423
1 file changed
+4
+4
View File
@@ -266,6 +266,10 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
return NULL;
}
}
else
{
pstart = buffer.chars;
}
}
while ((pstart = strstr(pstart, "Model name:")))