Skip to content

fix: avoid signed integer overflow UB in BloomFilter and DeltaVarintCompressor#329

Merged
lxy-9602 merged 3 commits into
alibaba:mainfrom
lxy-9602:fix-hash-ub
Jun 2, 2026
Merged

fix: avoid signed integer overflow UB in BloomFilter and DeltaVarintCompressor#329
lxy-9602 merged 3 commits into
alibaba:mainfrom
lxy-9602:fix-hash-ub

Conversation

@lxy-9602
Copy link
Copy Markdown
Collaborator

@lxy-9602 lxy-9602 commented Jun 2, 2026

Purpose

No Linked issue.
Fixes signed integer overflow undefined behavior (UB) in utility classes (bloom_filter.cpp, bloom_filter64.cpp, delta_varint_compressor.cpp ). Both issues stem from porting Java integer arithmetic (which wraps mod 2^N) directly to C++ signed types (where signed overflow is UB and may fail under UBSan or compiler optimization).

Tests

API and Format

Documentation

Generative AI tooling

@lxy-9602 lxy-9602 changed the title fix: avoid signed integer overflow UB in BloomFilter and DeltaVarintC… fix: avoid signed integer overflow UB in BloomFilter and DeltaVarintCompressor Jun 2, 2026
@zjw1111 zjw1111 requested a review from Copilot June 2, 2026 06:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copy link
Copy Markdown
Collaborator

@zjw1111 zjw1111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@lxy-9602 lxy-9602 merged commit 5f112a1 into alibaba:main Jun 2, 2026
9 checks passed
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.

3 participants