Commit e3b0d392 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fix infinite loop from size_t change

parent f2dfa892
......@@ -2176,7 +2176,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile()
int currentId = -1;
kwsys_stl::string idc = this->ExtractValueFromCpuInfoFile(buffer,"physical id");
while(this->CurrentPositionInFile != buffer.npos)
int id = atoi(idc.c_str());
if(id == currentId)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment