mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 05:05:00 +00:00
Fix bug with ]]]>
This commit is contained in:
parent
9ecf532908
commit
16e9434927
1 changed files with 3 additions and 1 deletions
|
@ -588,8 +588,10 @@ int PREFIX(contentTok)(const ENCODING *enc, const char *ptr, const char *end,
|
|||
ptr += MINBPC;
|
||||
if (ptr == end)
|
||||
return XML_TOK_PARTIAL;
|
||||
if (!CHAR_MATCHES(enc, ptr, '>'))
|
||||
if (!CHAR_MATCHES(enc, ptr, '>')) {
|
||||
ptr -= MINBPC;
|
||||
break;
|
||||
}
|
||||
*nextTokPtr = ptr;
|
||||
return XML_TOK_INVALID;
|
||||
INVALID_CASES(ptr, nextTokPtr)
|
||||
|
|
Loading…
Add table
Reference in a new issue