mirror of
https://github.com/gorhill/uBlock.git
synced 2025-04-07 08:51:09 +08:00
Fix TypedArray overflow
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3582
This commit is contained in:
parent
94f73015ed
commit
76b80baaea
@ -3100,7 +3100,7 @@ const urlTokenizer = new (class {
|
||||
this._hasQuery = 0;
|
||||
// https://www.reddit.com/r/uBlockOrigin/comments/dzw57l/
|
||||
// Remember: 1 token needs two slots
|
||||
this._tokens = new Uint32Array(2064);
|
||||
this._tokens = new Uint32Array(bidiTrie.haystack.length + 16);
|
||||
|
||||
this.knownTokens = new Uint8Array(65536);
|
||||
this.resetKnownTokens();
|
||||
|
Loading…
x
Reference in New Issue
Block a user