mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Observed data parser: Avoid infinite loop on parsing of invalid file
This commit is contained in:
@@ -308,12 +308,10 @@ std::vector<ColumnInfo> RifEclipseUserDataParserTools::columnInfoForTable(std::s
|
||||
header = false;
|
||||
break;
|
||||
}
|
||||
else if (words.size() > columnCount)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (words.size() > columnCount) break;
|
||||
|
||||
size_t diff = columnCount - words.size();
|
||||
|
||||
if (diff == columnCount)
|
||||
|
||||
Reference in New Issue
Block a user