CPU (Linux): don't segfault if we fail to find Vendor ID in lscpu
Fix #718
This commit is contained in:
1 parent
da9c928286
commit
3a96ade423
1 file changed
+4
@@ -266,6 +266,10 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pstart = buffer.chars;
|
||||
}
|
||||
}
|
||||
|
||||
while ((pstart = strstr(pstart, "Model name:")))
|
||||
|
||||
Reference in new issue
Block a user