mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Fix CDATA end sequence scanning (313929, r=mrbkap).
This commit is contained in:
parent
8320b65361
commit
7b0ebc0259
@ -1687,11 +1687,14 @@ retry:
|
||||
cp[5] == '[') {
|
||||
SkipChars(ts, 6);
|
||||
while ((c = GetChar(ts)) != ']' ||
|
||||
!MatchChar(ts, ']')) {
|
||||
!PeekChars(ts, 2, cp) ||
|
||||
cp[0] != ']' ||
|
||||
cp[1] != '>') {
|
||||
if (c == EOF)
|
||||
goto bad_xml_markup;
|
||||
ADD_TO_TOKENBUF(c);
|
||||
}
|
||||
GetChar(ts); /* discard ] but not > */
|
||||
tt = TOK_XMLCDATA;
|
||||
tp->t_op = JSOP_XMLCDATA;
|
||||
goto finish_xml_markup;
|
||||
|
Loading…
Reference in New Issue
Block a user