Skip to content

Commit 76b80ba

Browse files
committed
Fix TypedArray overflow
Related issue: uBlockOrigin/uBlock-issues#3582
1 parent 94f7301 commit 76b80ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/static-net-filtering.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3100,7 +3100,7 @@ const urlTokenizer = new (class {
31003100
this._hasQuery = 0;
31013101
// https://www.reddit.com/r/uBlockOrigin/comments/dzw57l/
31023102
// Remember: 1 token needs two slots
3103-
this._tokens = new Uint32Array(2064);
3103+
this._tokens = new Uint32Array(bidiTrie.haystack.length + 16);
31043104

31053105
this.knownTokens = new Uint8Array(65536);
31063106
this.resetKnownTokens();

0 commit comments

Comments
 (0)