Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
f47d8894
Commit
f47d8894
authored
Feb 05, 2019
by
Martin Heistermann
Browse files
Avoid endless loop on invalid files
parent
d7ccc04d
Pipeline
#8467
passed with stage
in 6 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/FileManager/FileManager.cc
View file @
f47d8894
...
...
@@ -154,7 +154,7 @@ bool FileManager::isHexahedralMesh(const std::string& _filename) const {
unsigned
int
n
=
0u
;
// Skip until we find polyhedra section
while
(
true
||
!
iff
.
eof
())
{
while
(
iff
.
good
())
{
iff
>>
s
;
if
(
s
==
"Polyhedra"
)
{
break
;
...
...
@@ -200,7 +200,7 @@ bool FileManager::isTetrahedralMesh(const std::string& _filename) const {
unsigned
int
n
=
0u
;
// Skip until we find polyhedra section
while
(
true
||
!
iff
.
eof
())
{
while
(
iff
.
good
())
{
iff
>>
s
;
if
(
s
==
"Polyhedra"
)
{
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment