Properly reset needle length in unserialized buffer

Possible related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2925
This commit is contained in:
Raymond Hill 2023-11-06 19:22:47 -05:00
parent a2ab313ae2
commit 8ed1ad9c9d
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -486,6 +486,8 @@ class HNTrieContainer {
} else {
this.buf32.set(selfie);
}
// https://github.com/uBlockOrigin/uBlock-issues/issues/2925
this.buf[255] = 0;
return true;
}