From 8ed1ad9c9dfc79d2e72f9c2d37d149330eadc0f8 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 6 Nov 2023 19:22:47 -0500 Subject: [PATCH] Properly reset needle length in unserialized buffer Possible related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2925 --- src/js/hntrie.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/hntrie.js b/src/js/hntrie.js index f125b2e6a..9bb9b24f4 100644 --- a/src/js/hntrie.js +++ b/src/js/hntrie.js @@ -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; }