Fix infinite loop in PLY parser

Fixes testcase hangs/9ab979ab256c70aaec9b651f32f051e9
pull/455/head
Turo Lamminen 2015-02-01 00:22:32 +02:00
parent 6b9f9afd7a
commit fe89773c6f
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ bool PLY::DOM::ParseHeader (const char* pCur,const char** pCurOut,bool isBinary)
*pCurOut = pCur;
// parse all elements
while (true)
while ((*pCur) != '\0')
{
// skip all comments
PLY::DOM::SkipComments(pCur,&pCur);