Avoid endless loop on invalid files

11 jobs for fix-endless-loop in 6 minutes and 58 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
passed clang-c++11 #66229
Linux

00:01:51

passed cppcheck #66231
Linux

00:00:25

passed doc #66238
Linux

00:00:24

passed gcc-c++11 #66228
Linux

00:02:04

passed macos-c++11 #66230
Apple

00:03:03

passed VS2013-32-bit #66237
VS2013

00:00:52

passed VS2013-64-bit #66236
VS2013

00:00:57

passed VS2015-32-bit #66235
VS2015

00:01:15

passed VS2015-64-bit #66234
VS2015

00:01:22

passed VS2017-32-bit #66233
VS2017

00:01:11

passed VS2017-64-bit #66232
VS2015

00:01:16