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

Fix #718
This commit is contained in:
李通洲
2024-02-13 19:08:38 +08:00
parent da9c928286
commit 3a96ade423
+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:")))