mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix TypedArray overflow
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3582
This commit is contained in:
parent
94f73015ed
commit
76b80baaea
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue