Fix infinite loop in PLY parser
Fixes testcase hangs/9ab979ab256c70aaec9b651f32f051e9pull/455/head
parent
6b9f9afd7a
commit
fe89773c6f
|
@ -436,7 +436,7 @@ bool PLY::DOM::ParseHeader (const char* pCur,const char** pCurOut,bool isBinary)
|
||||||
*pCurOut = pCur;
|
*pCurOut = pCur;
|
||||||
|
|
||||||
// parse all elements
|
// parse all elements
|
||||||
while (true)
|
while ((*pCur) != '\0')
|
||||||
{
|
{
|
||||||
// skip all comments
|
// skip all comments
|
||||||
PLY::DOM::SkipComments(pCur,&pCur);
|
PLY::DOM::SkipComments(pCur,&pCur);
|
||||||
|
|
Loading…
Reference in New Issue