Skip to content

Commit ac666c8

Browse files
authored
Merge pull request htacg#3 from readdle/fix/spa-660-tidy-hangs-on-specific-message
SPA 660 - Tidy hangs on specific message [Android only]
2 parents 45d5a6a + 614ba13 commit ac666c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lexer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
30133013

30143014
case LEX_STARTTAG: /* first letter of tagname */
30153015
c = TY_(ReadChar)(doc->docIn);
3016+
if (c == EndOfStream) {
3017+
continue;
3018+
}
30163019
ChangeChar(lexer, (tmbchar)c);
30173020
lexer->txtstart = lexer->lexsize - 1; /* set txtstart to first letter */
30183021
c = ParseTagName( doc );

0 commit comments

Comments
 (0)