mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 17:02:27 +02:00
Fix not properly resetting needle buffer in createTrieFromStoredDomainOpt()
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1902 The cached needle didn't match the one stored in the needle buffer when resetting the cached needle without resetting the needle buffer.
This commit is contained in:
parent
7998eada5c
commit
d66cd1116c
@ -267,6 +267,7 @@ class HNTrieContainer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.needle = ''; // Important
|
this.needle = ''; // Important
|
||||||
|
this.buf[255] = 0; // Important
|
||||||
return itrie;
|
return itrie;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user