Skip to content

Use pointer to StableBloomFilter#446

Open
netheril96 wants to merge 1 commit into
bitmagnet-io:mainfrom
netheril96:pointer
Open

Use pointer to StableBloomFilter#446
netheril96 wants to merge 1 commit into
bitmagnet-io:mainfrom
netheril96:pointer

Conversation

@netheril96

Copy link
Copy Markdown

I got a nil pointer exception in the bloom filter and it looked like copying boom.StableBloomFilter by value may not be safe. This PR changes it to a pointer so it is guaranteed to be initialized correctly. The nil pointer exception has since gone away for me.

The value copy may be bugged in certain situations
giorgiobrullo added a commit to giorgiobrullo/bitmagnet that referenced this pull request Mar 1, 2026
Cherry-pick of PR bitmagnet-io#446. Value-copy of boom.StableBloomFilter caused
occasional nil pointer dereference. Using a pointer embedding instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant