Skip to content
GitLab
Menu
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
03d426b2
Commit
03d426b2
authored
Feb 19, 2019
by
Jan Möbius
Browse files
Merge branch 'fix-endless-loop' into 'master'
FileManager: Avoid endless loop on invalid files See merge request
!41
parents
2354de4c
f47d8894
Pipeline
#8646
passed with stage
in 4 minutes and 9 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/FileManager/FileManager.cc
View file @
03d426b2
...
...
@@ -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
.
Attach a 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