Skip to content

Commit 090a963

Browse files
committed
Mozilla bug 1584216. r=alchen.
1 parent a6ebf14 commit 090a963

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/nu/validator/htmlparser/impl/Tokenizer.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,8 +2578,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
25782578
}
25792579
c = checkChar(buf, pos);
25802580
switch (c) {
2581-
case '\u0000':
2582-
break stateloop;
25832581
case '-':
25842582
clearStrBufAfterOneHyphen();
25852583
state = transition(state, Tokenizer.COMMENT_START, reconsume, pos);
@@ -3082,9 +3080,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
30823080
break stateloop;
30833081
}
30843082
c = checkChar(buf, pos);
3085-
if (c == '\u0000') {
3086-
break stateloop;
3087-
}
30883083
/*
30893084
* Unlike the definition is the spec, this state does not
30903085
* return a value and never requires the caller to
@@ -3110,6 +3105,7 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
31103105
case '\u000C':
31113106
case '<':
31123107
case '&':
3108+
case '\u0000':
31133109
emitOrAppendCharRefBuf(returnState);
31143110
if ((returnState & DATA_AND_RCDATA_MASK) == 0) {
31153111
cstart = pos;
@@ -3163,9 +3159,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
31633159
break stateloop;
31643160
}
31653161
c = checkChar(buf, pos);
3166-
if (c == '\u0000') {
3167-
break stateloop;
3168-
}
31693162
/*
31703163
* The data structure is as follows:
31713164
*
@@ -3242,9 +3235,6 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
32423235
break stateloop;
32433236
}
32443237
c = checkChar(buf, pos);
3245-
if (c == '\u0000') {
3246-
break stateloop;
3247-
}
32483238
entCol++;
32493239
/*
32503240
* Consume the maximum number of characters possible,

0 commit comments

Comments
 (0)