This commit is contained in:
gorhill 2015-03-29 12:35:13 -04:00
parent 60713fc48a
commit ab15132914
1 changed files with 7 additions and 0 deletions

View File

@ -1991,7 +1991,14 @@ FilterContainer.prototype.tokenize = function(url) {
tokenEntry.beg = matches.index; tokenEntry.beg = matches.index;
tokenEntry.token = matches[0]; tokenEntry.token = matches[0];
i += 1; i += 1;
// https://github.com/gorhill/uBlock/issues/1118
// Crazy case... but I guess we have to expect the worst...
if ( i === 2048 ) {
break;
} }
}
// Sentinel // Sentinel
tokenEntry = tokens[i]; tokenEntry = tokens[i];
if ( tokenEntry === undefined ) { if ( tokenEntry === undefined ) {