Skip to content

Commit

Permalink
Properly reset needle length in unserialized buffer
Browse files Browse the repository at this point in the history
Possible related issue:
uBlockOrigin/uBlock-issues#2925
  • Loading branch information
gorhill committed Nov 7, 2023
1 parent a2ab313 commit 8ed1ad9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/hntrie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8ed1ad9

Please sign in to comment.